fixes
[distro-setup] / ziva-screen
index 4f62c033c4fee287f9b942b453d374faa58fee28..9a9aa6a5b7b77a1143d00a42cd8cd8c3a8f39bc3 100755 (executable)
@@ -21,7 +21,7 @@
 # limitations under the License.
 
 
-# Get screenshots from bow, discard them if they dont change much.
+# Get screenshots from bo, discard them if they dont change much.
 
 [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
 
@@ -36,7 +36,7 @@ esac
 
 f=/run/user/1000/ziva-tmp.jpg
 
-install -g 1000 -o 1000 -m 700 $dest_dir
+install -d -g 1000 -o 1000 -m 700 $dest_dir
 cd $dest_dir
 shopt -s nullglob
 jpgs=( 20*jpg )
@@ -45,9 +45,9 @@ if (( ${#jpgs[@]} >= 1 )); then
   lastf=$(ls -1 20*jpg  | tail -n1)
 fi
 
-ssh bow DISPLAY=:0 scrot -z $f 2>/dev/null || exit 0
-rsync --inplace bow:$f $dest_dir 2>/dev/null || exit 0
-ssh bow rm -f $f
+ssh bo DISPLAY=:0 scrot -z $f 2>/dev/null || exit 0
+rsync --inplace bo:$f $dest_dir 2>/dev/null || exit 0
+ssh bo rm -f $f
 
 same=false
 if [[ $lastf ]]; then