Skip to content

Commit 2c5108e

Browse files
committed
Claude review: umount_filesystems, clean out bugs claude pointed to.
1 parent 3c737f2 commit 2c5108e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

umount_filesystems

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ opts=$(getopt \
5151
)
5252

5353
if [ $? -ne 0 ]; then
54-
exit
54+
exit 1
5555
fi
56-
eval set --$opts
56+
eval set -- "$opts"
5757

5858
while [[ $# -gt 0 ]]; do
5959
case "$1" in
@@ -83,11 +83,11 @@ done
8383

8484
if [[ $mount_pnt == "" ]]; then
8585
echo Need to designate mount point prefix
86-
usage
86+
usage $0
8787
fi
8888
if [[ $number_mount_pnts == "" ]]; then
8989
echo Need to designate the number of mount points
90-
usage
90+
usage $0
9191
fi
9292

9393
let "number_mount_pnts=$number_mount_pnts-1"

0 commit comments

Comments
 (0)