Change directory deletion for file deletion instead

This commit is contained in:
2026-01-31 22:23:04 -05:00
parent de5a8240a8
commit 6f0992de49

View File

@@ -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