removed sudo | script is always run as root

This commit is contained in:
array-in-a-matrix 2021-10-31 14:23:25 -04:00
parent 25714236e2
commit 2fdb3e197e

View file

@ -1,6 +1,6 @@
#!/bin/sh
image=$(find -L ~/Pictures/Wallpapers/ -type f | shuf -n1)
sudo cp "$image" /usr/share/wallpapers/lightdm/
cp "$image" /usr/share/wallpapers/lightdm/
cd /usr/share/wallpapers/lightdm
filename=${image##*/}; echo $filename
sudo mv -f "$filename" wallpaper
mv -f "$filename" wallpaper