diff --git a/updatescripts.sh b/updatescripts.sh index 01bb6d8..f8e5c32 100644 --- a/updatescripts.sh +++ b/updatescripts.sh @@ -33,10 +33,10 @@ fi } updatescripts(){ -if [ -f /.SSH/script/ ]; then -rm -rf /.SSH/script -fi +if [ ! -f /.SSH/script/ ]; then 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/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