diff --git a/check-ssl.sh b/check-ssl.sh index 16c4b9c..daa070b 100644 --- a/check-ssl.sh +++ b/check-ssl.sh @@ -16,7 +16,7 @@ echo " > Find more @ https://github.com/drwetter/testssl.sh" echo -e "$GREEN" echo " > Bitte gib die komplette URL (z.B. https://test.example.com) an." -read -p " > Welche Webseite soll getestet werden? " WEBSITE +read -rp " > Welche Webseite soll getestet werden? " WEBSITE echo -e "${RESET}" docker pull drwetter/testssl.sh diff --git a/container-update.sh b/container-update.sh index 78afc20..e337e4a 100644 --- a/container-update.sh +++ b/container-update.sh @@ -15,17 +15,15 @@ for compose_file in /opt/docker/**/docker-compose.yml; do done echo "> Containers have been updated." -echo "" confirm=n -read -p " -> Do you want to prune docker? [y/N] -> WARNING! This will remove: +echo " +> WARNING! The following confirmation will remove: > - all stopped containers > - all networks not used by at least one container > - all dangling images -> - unused build cache -" confirm +> - unused build cache" +read -rp "> Do you want to prune docker? [y/N] " confirm echo "" if [[ $confirm == [yY] ]]; then diff --git a/copy.sh b/copy.sh index 611fc57..e4b7340 100644 --- a/copy.sh +++ b/copy.sh @@ -23,9 +23,8 @@ then /usr/bin/umount /mnt/uploads/ # if rsync is successful, remove all files - if [ "$?" -eq "0" ] - then - rm -rf rm $SOURCE/* + if [ "$?" -eq "0" ]; then + rm -rf rm "${SOURCE:?}/"* echo "> synced files have been removed from source" else echo "> error"