From 6f0992de49c262f41ac31b2b101d3aa3013e8d71 Mon Sep 17 00:00:00 2001 From: Franscobec Date: Sat, 31 Jan 2026 22:23:04 -0500 Subject: [PATCH] Change directory deletion for file deletion instead --- updatescripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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