diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/disk/node.tag/format/node.def | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/show/disk/node.tag/format/node.def b/templates/show/disk/node.tag/format/node.def index 4b09369..ef65197 100644 --- a/templates/show/disk/node.tag/format/node.def +++ b/templates/show/disk/node.tag/format/node.def @@ -1,6 +1,7 @@ help: Show disk drive formatting -run: dev=/dev/$3 - if [ ! -b $dev ] - then echo "$3 is not a disk device"; exit 1 +run: disk_dev="/dev/$3" + if [ ! -b "$disk_dev" ] + then echo "$3 is not a disk device" + exit 1 fi - /sbin/fdisk -l /dev/${disk_dev} + /sbin/fdisk -l "$disk_dev" |