improve licensing
[distro-setup] / ziva-screen
index c512673009d4c56a40f24b3967e7a7ee4437c187..ac875c07b1f05e5194c98361f70cef83b20cfb47 100755 (executable)
@@ -15,12 +15,12 @@ esac
 
 f=/run/user/1000/ziva-tmp.jpg
 
-mkdir -p $dest_dir
+install -g 1000 -o 1000 -m 700 $dest_dir
 cd $dest_dir
 shopt -s nullglob
 jpgs=( 20*jpg )
 if (( ${#jpgs[@]} >= 1 )); then
-  # shellcheck disable=SC2048 # intentional
+  # shellcheck disable=SC2012 # this is much sorter than find|sort
   lastf=$(ls -1 20*jpg  | tail -n1)
 fi