replace whitespaces with tabs

main
Dominic Reich 2 weeks ago
parent 9a199f2942
commit ee097a574a
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -4,8 +4,8 @@
# to the blocked.txt file on my http webroot # to the blocked.txt file on my http webroot
if [[ $USER == "root" ]]; then if [[ $USER == "root" ]]; then
echo >&2 "user must not be root! exiting." echo >&2 "user must not be root! exiting."
exit 1 exit 1
fi fi
# add ips to table blacklist # add ips to table blacklist

@ -2,19 +2,20 @@
# Update the TUXEDO WebFAI usb stick # Update the TUXEDO WebFAI usb stick
# the file actually moved to https://webfai.tuxedocomputers.com/webfai-current.img # the file actually moved to https://webfai.tuxedocomputers.com/webfai-current.img
# hence the -L switch on curl # hence the -L switch on curl
# lastmod: 2024-09-08
if (test -f *.iso); then if (test -f *.iso); then
DATE=$(date +%Y%m%d-%H%M%S) DATE=$(date +%Y%m%d-%H%M%S)
FILENAME=$(ls -1 *.iso) FILENAME=$(ls -1 *.iso)
BASENAME=$(basename ${FILENAME} .iso) BASENAME=$(basename ${FILENAME} .iso)
BACKUPFILE=${BASENAME}.backup-$DATE.iso BACKUPFILE=${BASENAME}.backup-$DATE.iso
# backup old image # backup old image
echo -n "Compressing old image file witz xz..." echo -n "Compressing old image file witz xz..."
xz -c ${FILENAME} > ${BACKUPFILE}.xz xz -c ${FILENAME} > ${BACKUPFILE}.xz
echo "done" echo "done"
else else
echo "Found no iso file, no backup is made" echo "Found no iso file, no backup is made"
fi fi
echo -n "Downloading image file with curl..." echo -n "Downloading image file with curl..."

Loading…
Cancel
Save