Solved shellcheck errors

This commit is contained in:
Kevin Veen-Birkenbach 2020-06-12 11:41:08 +02:00
parent b1cee3a6e1
commit 5de37db883
2 changed files with 8 additions and 6 deletions

View File

@ -152,7 +152,7 @@ install_gnome_extension(){
if [ "$DESKTOP_SESSION" == "gnome" ]; then if [ "$DESKTOP_SESSION" == "gnome" ]; then
info "Synchronizing gnome tools..." && info "Synchronizing gnome tools..." &&
sudo pacman -S $(get_packages "client/pacman/gnome") || error "Syncronisation failed." sudo pacman -S "$(get_packages 'client/pacman/gnome')" || error "Syncronisation failed."
info "Setting up gnome dash favourites..." && info "Setting up gnome dash favourites..." &&
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop',
'org.gnome.Terminal.desktop', 'org.gnome.Terminal.desktop',

View File

@ -2,10 +2,12 @@
# Executes the import script in reverse mode # Executes the import script in reverse mode
# @author Kevin Veen-Birkenbach [aka. Frantz] # @author Kevin Veen-Birkenbach [aka. Frantz]
# shellcheck source=/dev/null # Deactivate SC1090 # 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) source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
bash "$SCRIPT_PATH""data/import-from-system.sh" reverse bash "$SCRIPT_PATH""data/import-from-system.sh" reverse
info "Setting right permissions for importet files..." info "Setting right permissions for importet files..." &&
chown -R $USER:$USER ~ chown -R "$USER":"$USER" ~ &&
chmod -R 700 ~/.ssh chmod -R 700 ~/.ssh &&
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa &&
chmod 600 ~/.ssh/id_rsa.pub chmod 600 ~/.ssh/id_rsa.pub ||
error