summaryrefslogtreecommitdiff
path: root/scripts/lvmdump.sh.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-06-28 20:56:17 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-06-29 22:23:16 +0200
commita0740f831c4787fbb98a9a7db5ca2f3c0bfdcf6d (patch)
tree0e3392e619d3fde55daccf07b34543060ac223a7 /scripts/lvmdump.sh.in
parente08e714b68cce5b46fe47af7716a6d5236f5c683 (diff)
downloadlvm2-a0740f831c4787fbb98a9a7db5ca2f3c0bfdcf6d.tar.gz
lvmdump: drop extra $
$/${} is unnecessary on arithmetic variables.
Diffstat (limited to 'scripts/lvmdump.sh.in')
-rw-r--r--scripts/lvmdump.sh.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/lvmdump.sh.in b/scripts/lvmdump.sh.in
index 143b81909..611dda6f9 100644
--- a/scripts/lvmdump.sh.in
+++ b/scripts/lvmdump.sh.in
@@ -139,7 +139,7 @@ warnings
myecho "Creating dump directory: $dir"
echo " "
-if (( $advanced )); then
+if (( advanced )); then
myecho "Gathering LVM volume info..."
myecho " vgscan..."
@@ -158,7 +158,7 @@ if (( $advanced )); then
log "\"$LVM\" vgs -v >> \"$dir/vgs\" 2>> \"$log\""
fi
-if (( $clustered )); then
+if (( clustered )); then
myecho "Gathering cluster info..."
{
@@ -234,7 +234,7 @@ myecho "Gathering /sys/block listing..."
log "$LS -laR /sys/block >> \"$dir/sysblock_listing\" 2>> \"$log\""
log "$LS -laR /sys/devices/virtual/block >> \"$dir/sysblock_listing\" 2>> \"$log\""
-if (( $metadata )); then
+if (( metadata )); then
myecho "Gathering LVM metadata from Physical Volumes..."
log "$MKDIR -p \"$dir/metadata\""
@@ -252,7 +252,7 @@ if (( $metadata )); then
done
fi
-if (( $sysreport )); then
+if (( sysreport )); then
myecho "Gathering system info..."
sysreport_dir="$dir/sysreport"
@@ -301,7 +301,7 @@ if (( $sysreport )); then
fi
fi
-if (( $udev )); then
+if (( udev )); then
myecho "Gathering udev info..."
udev_dir="$dir/udev"
@@ -315,7 +315,7 @@ if (( $udev )); then
log "$CP -RL --preserve=all /lib/udev/rules.d \"$udev_dir/rules_lib\" 2>> \"$log\""
fi
-if (( $lvmetad )); then
+if (( lvmetad )); then
(echo 'request="dump"'; echo '##') | {
if type -p "$SOCAT" >& /dev/null; then
echo "$SOCAT unix-connect:$LVMETAD_SOCKET -" >> "$log"
@@ -331,7 +331,7 @@ if (( $lvmetad )); then
} > "$dir/lvmetad.txt"
fi
-if (( $lvmpolld )); then
+if (( lvmpolld )); then
(echo 'request="dump"'; echo '##') | {
if type -p "$SOCAT" >& /dev/null; then
echo "$SOCAT unix-connect:$LVMPOLLD_SOCKET -" >> "$log"