mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-23 21:41:44 +02:00
moving the files should not require sudo
This commit is contained in:
parent
15052be29b
commit
a2f5c7da16
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user