From ee097a574a61a4f10d1f71280892ec30bdc0a821 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Sun, 8 Sep 2024 12:48:16 +0200 Subject: [PATCH] replace whitespaces with tabs --- ubl-openbsd.sh | 4 ++-- update-webfai.sh | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ubl-openbsd.sh b/ubl-openbsd.sh index 3f5060e..0d665aa 100755 --- a/ubl-openbsd.sh +++ b/ubl-openbsd.sh @@ -4,8 +4,8 @@ # to the blocked.txt file on my http webroot if [[ $USER == "root" ]]; then - echo >&2 "user must not be root! exiting." - exit 1 + echo >&2 "user must not be root! exiting." + exit 1 fi # add ips to table blacklist diff --git a/update-webfai.sh b/update-webfai.sh index 531c489..c2b804e 100755 --- a/update-webfai.sh +++ b/update-webfai.sh @@ -2,19 +2,20 @@ # Update the TUXEDO WebFAI usb stick # the file actually moved to https://webfai.tuxedocomputers.com/webfai-current.img # hence the -L switch on curl +# lastmod: 2024-09-08 if (test -f *.iso); then - DATE=$(date +%Y%m%d-%H%M%S) - FILENAME=$(ls -1 *.iso) - BASENAME=$(basename ${FILENAME} .iso) - BACKUPFILE=${BASENAME}.backup-$DATE.iso + DATE=$(date +%Y%m%d-%H%M%S) + FILENAME=$(ls -1 *.iso) + BASENAME=$(basename ${FILENAME} .iso) + BACKUPFILE=${BASENAME}.backup-$DATE.iso - # backup old image - echo -n "Compressing old image file witz xz..." - xz -c ${FILENAME} > ${BACKUPFILE}.xz - echo "done" + # backup old image + echo -n "Compressing old image file witz xz..." + xz -c ${FILENAME} > ${BACKUPFILE}.xz + echo "done" else - echo "Found no iso file, no backup is made" + echo "Found no iso file, no backup is made" fi echo -n "Downloading image file with curl..."