Skip to content

Commit

Permalink
SC2154: ... is referenced but not assigned.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 6, 2017
1 parent b9ec261 commit d1d912f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions periodic/xPERIODICx_zfsnap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ fi
# xPERIODICx_zfsnap_enable_prefix - Create snapshots with prefix (values: YES | NO) (Default = YES)
# xPERIODICx_zfsnap_prefix - set prefix for snapshots (Default = xPERIODICx)

# shellcheck disable=SC2154
case "${xPERIODICx_zfsnap_enable-"NO"}" in
[Yy][Ee][Ss])
OPTIONS="$xPERIODICx_zfsnap_flags"
Expand Down
1 change: 1 addition & 0 deletions periodic/xPERIODICx_zfsnap_delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ fi
# xPERIODICx_zfsnap_delete_prefixes - Space-separated list of prefixes of expired zfsnap snapshots to delete
# 'hourly-', 'daily-', 'weekly-', 'monthly-', and 'reboot-' prefixes are hardcoded

# shellcheck disable=SC2154
case "${xPERIODICx_zfsnap_delete_enable-"NO"}" in
[Yy][Ee][Ss])
OPTIONS="$xPERIODICx_zfsnap_delete_flags"
Expand Down
2 changes: 1 addition & 1 deletion tests/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ do
do
sh -n "$_f"
echo "shellcheck $_f"
shellcheck -x -s sh -e SC1091,SC2009,SC2039,SC2086,SC2153,SC2016,SC1004,SC2119 $_f || ERRS=$((ERRS + 1))
shellcheck -x -s sh -e SC1090,SC1091,SC2009,SC2015,SC2034,SC2039,SC2086,SC2153,SC2016,SC1004,SC2119 $_f || ERRS=$((ERRS + 1))
done
done

Expand Down

0 comments on commit d1d912f

Please sign in to comment.