mpv-cam-view/new

11 lines
280 B
Plaintext
Raw Normal View History

2020-10-20 22:30:54 +00:00
#!/bin/sh
_cam_directory='cams'
mkdir -p "$_cam_directory"
echo '#!/bin/sh' >> "$_cam_directory/$1"
2020-10-21 09:56:07 +00:00
# FIXME fails when run from parent directory (see mars for poss solution)
2020-10-27 09:49:17 +00:00
echo '"$(pwd)"'"/cams/launcher.sh \"$2\" "'"$1"' >> "$_cam_directory/$1"
2020-10-20 22:30:54 +00:00
chmod +x "$_cam_directory/$1"