diff --git a/scripts/client/setup.sh b/scripts/client/setup.sh index 53a2990..d93e04e 100644 --- a/scripts/client/setup.sh +++ b/scripts/client/setup.sh @@ -1,5 +1,6 @@ #!/bin/bash # @author Kevin Veen-Birkenbach +# shellcheck disable=SC2015 # Deactivating bool hint # shellcheck source=/dev/null # Deactivate SC1090 source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1) diff --git a/scripts/encryption/lock.sh b/scripts/encryption/lock.sh index da108e2..533077f 100644 --- a/scripts/encryption/lock.sh +++ b/scripts/encryption/lock.sh @@ -3,6 +3,7 @@ # Locks the data # @author Kevin Veen-Birkenbach [aka. Frantz] # +# shellcheck disable=SC2015 # Deactivating bool hint # shellcheck source=/dev/null # Deactivate SC1090 source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1) info "Locking directory $DECRYPTED_PATH..." && diff --git a/scripts/encryption/unlock.sh b/scripts/encryption/unlock.sh index 09670b2..1abe5e6 100644 --- a/scripts/encryption/unlock.sh +++ b/scripts/encryption/unlock.sh @@ -4,6 +4,7 @@ # @author Kevin Veen-Birkenbach [aka. Frantz] # # shellcheck source=/dev/null # Deactivate SC1090 +# shellcheck disable=SC2015 # Deactivating bool hint source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1) info "Unlocking directory $DECRYPTED_PATH..." if [ ! -d "$DECRYPTED_PATH" ] diff --git a/scripts/image/backup.sh b/scripts/image/backup.sh index 70284a2..f9171ef 100644 --- a/scripts/image/backup.sh +++ b/scripts/image/backup.sh @@ -14,17 +14,17 @@ while [ \! -b "$ifi" ] done while [ "$path" == "" ] do - echo "Bitte Backupimagepfad+Namen zu $(pwd) eingeben:" - read path + echo "Bitte Backupimagepfad+Namen zu $PWD eingeben:" + read -r path if [ "${path:0:1}" == "/" ] then - ofi=$path.img + ofi="$path.img" else - ofi=$(pwd)"/"$path.img + ofi="$PWD/$path.img" fi done info "Input file: $ifi" info "Output file: $ofi" question "Please confirm by pushing \"Enter\". To cancel use \"Ctrl + Alt + C\"" -read bestaetigung -dd if=$ifi of=$ofi bs=1M status=progress +read -r bestaetigung +dd if="$ifi" of="$ofi" bs=1M status=progress diff --git a/scripts/image/chroot-to-pi.sh b/scripts/image/chroot-to-pi.sh index 859e350..2566063 100644 --- a/scripts/image/chroot-to-pi.sh +++ b/scripts/image/chroot-to-pi.sh @@ -38,8 +38,8 @@ mkdir -p /mnt/raspbian # mount partition -mount -o rw ${1}2 /mnt/raspbian -mount -o rw ${1}1 /mnt/raspbian/boot +mount -o rw "$1""2" /mnt/raspbian +mount -o rw "$1""1" /mnt/raspbian/boot # mount binds mount --bind /dev /mnt/raspbian/dev/