Solved shellcheck errors

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz] committed 2020-06-12 11:41:08 +02:00
1 parent b1cee3a6e1
commit 5de37db883
2 files changed
+8 -6

No files matched your search

+7 -5
View File
@@ -2,10 +2,12 @@
# Executes the import script in reverse mode
# @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)
bash "$SCRIPT_PATH""data/import-from-system.sh" reverse
info "Setting right permissions for importet files..."
chown -R $USER:$USER ~
chmod -R 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
info "Setting right permissions for importet files..." &&
chown -R "$USER":"$USER" ~ &&
chmod -R 700 ~/.ssh &&
chmod 600 ~/.ssh/id_rsa &&
chmod 600 ~/.ssh/id_rsa.pub ||
error