Disable SC2119,SC2120 where appropriate.

remotes/origin/4.10
Darko Poljak 7 years ago
parent 9b567ed8f7
commit 596f3cf227
  1. 2
      cdist/conf/type/__jail_freebsd10/gencode-remote
  2. 2
      cdist/conf/type/__jail_freebsd9/gencode-remote

@ -111,6 +111,7 @@ startJail() {
fi
}
# shellcheck disable=SC2120
deleteJail() {
# Unmount the jail's mountpoints if necessary
cat <<EOF
@ -347,6 +348,7 @@ if [ "$present" = "EXISTS" ]; then # The jail currently exists
exit 0
else # The jail is not supposed to exist
stopJail
# shellcheck disable=SC2119
deleteJail
exit 0
fi

@ -116,6 +116,7 @@ startJail() {
fi
}
# shellcheck disable=SC2120
deleteJail() {
# Unmount the jail's mountpoints if necessary
cat <<EOF
@ -342,6 +343,7 @@ if [ "$present" = "EXISTS" ]; then # The jail currently exists
exit 0
else # The jail is not supposed to exist
stopJail
# shellcheck disable=SC2119
deleteJail
exit 0
fi

Loading…
Cancel
Save