diff options
author | Giuseppe Di Natale <[email protected]> | 2017-09-18 14:23:09 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-09-18 14:23:09 -0700 |
commit | ea49beba66106dcb272b43323fad147df1df13fd (patch) | |
tree | 968b728491e8db5d289f2084253b4ce0944a083d /scripts/zfs-helpers.sh | |
parent | a35b4cc8cca6eed5e93d54aa9ca2c72273a8943b (diff) |
Correct shellcheck errors
The ZFS buildbot moved to using Ubuntu 17.04 for the
STYLE builder which has a newer version of shellcheck.
Correct the new issues it discovers.
Reviewed-by: loli10K <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Giuseppe Di Natale <[email protected]>
Closes #6647
Diffstat (limited to 'scripts/zfs-helpers.sh')
-rwxr-xr-x | scripts/zfs-helpers.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/zfs-helpers.sh b/scripts/zfs-helpers.sh index 3fbe64a52..56d33b9c8 100755 --- a/scripts/zfs-helpers.sh +++ b/scripts/zfs-helpers.sh @@ -88,11 +88,11 @@ while getopts 'hdirv' OPTION; do esac done -if [ "$INSTALL" = "yes" -a "$REMOVE" = "yes" ]; then +if [ "$INSTALL" = "yes" ] && [ "$REMOVE" = "yes" ]; then fail "Specify -i or -r but not both" fi -if [ "$INSTALL" = "no" -a "$REMOVE" = "no" ]; then +if [ "$INSTALL" = "no" ] && [ "$REMOVE" = "no" ]; then fail "Either -i or -r must be specified" fi @@ -115,8 +115,8 @@ if [ "$VERBOSE" = "yes" ]; then fi install() { - local src=$1 - local dst=$2 + src=$1 + dst=$2 if [ -h "$dst" ]; then echo "Symlink exists: $dst" @@ -136,7 +136,7 @@ install() { } remove() { - local dst=$1 + dst=$1 if [ -h "$dst" ]; then msg "rm $dst" |