Change directory deletion for file deletion instead
This commit is contained in:
@@ -33,10 +33,10 @@ fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
updatescripts(){
|
updatescripts(){
|
||||||
if [ -f /.SSH/script/ ]; then
|
if [ ! -f /.SSH/script/ ]; then
|
||||||
rm -rf /.SSH/script
|
|
||||||
fi
|
|
||||||
mkdir /.SSH/script
|
mkdir /.SSH/script
|
||||||
|
fi
|
||||||
|
find /.SSH/script -name *.sh -delete
|
||||||
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/renewkeys.sh -O /.SSH/script/renewkeys.sh
|
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/renewkeys.sh -O /.SSH/script/renewkeys.sh
|
||||||
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/deploy-newssh.sh -O /.SSH/script/deploy-newssh.sh
|
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/deploy-newssh.sh -O /.SSH/script/deploy-newssh.sh
|
||||||
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/autoremakekeys.sh -O /.SSH/script/autoremakekeys.sh
|
wget -q https://git.franscorack.com/Franscobec/AutoremakeSSH/raw/branch/main/autoremakekeys.sh -O /.SSH/script/autoremakekeys.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user