From 0de56562085c3679dfb3bb6390539bb5872bf512 Mon Sep 17 00:00:00 2001 From: 4s3ti <4s3ti@protonmail.com> Date: Tue, 2 Nov 2021 16:53:54 +0100 Subject: [PATCH] Shellcheck Compliance scripts/bacup.sh * Fixes SC2154: install_home is referenced but not assigned. * Disabled error as this variable is sourced from setupVars file --- scripts/backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/backup.sh b/scripts/backup.sh index fa76dce..080a06b 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -59,6 +59,8 @@ source "${setupVars}" checkbackupdir(){ + # Disabling shellcheck error $install_home sourced from $setupVars + # shellcheck disable=SC2154 if [[ ! -d $install_home/$backupdir ]]; then mkdir -p "$install_home"/"$backupdir" fi