Add single quotes around awk parameters.
This commit is contained in:
@@ -10,11 +10,11 @@ function storage {
|
||||
fi
|
||||
|
||||
if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then
|
||||
df -h "$location" | tail -n 1 | awk {print $5}
|
||||
df -h "$location" | tail -n 1 | awk '{print $5}'
|
||||
elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then
|
||||
df -h "$location" | tail -n 1 | awk {print $3"/"$2}
|
||||
df -h "$location" | tail -n 1 | awk '{print $3"/"$2}'
|
||||
else
|
||||
df -h "$location" | tail -n 1 | awk {print $5" Free, "$3"/"$2" Used"}
|
||||
df -h "$location" | tail -n 1 | awk '{print $5" Free, "$3"/"$2" Used"}'
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user