moving the files should not require sudo

This commit is contained in:
Tyler Kelley 2024-02-29 23:22:35 -06:00
parent 15052be29b
commit a2f5c7da16

View File

@ -28,12 +28,12 @@ if [ -d "zaneyos" ]; then
echo "ZaneyOS exists, backing up to .config/zaneyos-backups folder." echo "ZaneyOS exists, backing up to .config/zaneyos-backups folder."
if [ -d ".config/zaneyos-backups" ]; then if [ -d ".config/zaneyos-backups" ]; then
echo "Moving current version of ZaneyOS to backups folder." echo "Moving current version of ZaneyOS to backups folder."
sudo mv $HOME/zaneyos .config/zaneyos-backups/$backupname mv $HOME/zaneyos .config/zaneyos-backups/$backupname
sleep 1 sleep 1
else else
echo "Creating the backups folder & moving ZaneyOS to it." echo "Creating the backups folder & moving ZaneyOS to it."
mkdir .config/zaneyos-backups mkdir .config/zaneyos-backups
sudo mv $HOME/zaneyos .config/zaneyos-backups/$backupname mv $HOME/zaneyos .config/zaneyos-backups/$backupname
sleep 1 sleep 1
fi fi
else else