80f8ec07e3
The app was still cutting out last command line arg of my test setup. Later found out it was the run script limiting the command line arg count to 3. I extended it out to 8 but I'll need to find a better option to make it limitless.
14 lines
406 B
Bash
14 lines
406 B
Bash
#!/bin/sh
|
|
if [ ! -d "/opt/mow" ]; then
|
|
mkdir /opt/mow
|
|
fi
|
|
cp ./.build-mow/mow /opt/mow/bin
|
|
printf "#!/bin/sh\n" > /opt/mow/run
|
|
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
|
|
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
|
|
printf "/opt/mow/bin \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8\n" >> /opt/mow/run
|
|
chmod +x /opt/mow/run
|
|
chmod +x /opt/mow/bin
|
|
rm /usr/bin/mow
|
|
ln -s /opt/mow/run /usr/bin/mow
|