diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 16:04:19 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:16 +0200 |
commit | 439aaca3bc42c73ffe99bbf9b15c726b987ee2a6 (patch) | |
tree | b92b436021c9e98a9a520e292da4850d30acf7e2 /scripts/fsadm.sh | |
parent | b68235c51970dc3e159ebf7aa0ac5f4928414574 (diff) | |
download | lvm2-439aaca3bc42c73ffe99bbf9b15c726b987ee2a6.tar.gz |
fsadm: remove surrounding $()
Remove surrounding $() to avoid executing output
Diffstat (limited to 'scripts/fsadm.sh')
-rwxr-xr-x | scripts/fsadm.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index 996cd1f8e..f3cc98bcf 100755 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -613,10 +613,10 @@ for i in "$TUNE_EXT" "$RESIZE_EXT" "$TUNE_REISER" "$RESIZE_REISER" \ done "$LVM" version >"$NULL" 2>&1 || error "Could not run lvm binary \"$LVM\"." -$("$READLINK" -e / >"$NULL" 2>&1) || READLINK_E="-f" +"$READLINK" -e / >"$NULL" 2>&1 || READLINK_E="-f" TEST64BIT=$(( 1000 * 1000000000000 )) test "$TEST64BIT" -eq 1000000000000000 || error "Shell does not handle 64bit arithmetic." -$(echo Y | "$GREP" Y >"$NULL") || error "Grep does not work properly." +echo Y | "$GREP" Y >"$NULL" || error "Grep does not work properly." test "$("$DATE" -u -d"Jan 01 00:00:01 1970" +%s)" -eq 1 || error "Date translation does not work." |