removed sudo | script is always run as root
This commit is contained in:
parent
25714236e2
commit
2fdb3e197e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue