change if to single []

This commit is contained in:
Xuu 2017-11-10 23:31:45 +00:00
parent bd427d0da3
commit 9ef8c23168

View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
if [ $# -eq 0 ] if [ "$#" -eq "0" ]
then then
echo "Usage: $0 YOUR-MNT" echo "Usage: $0 YOUR-MNT"
exit exit
fi fi
if [[ "$1" = "--all" ]] if [ "$1" = "--all" ]
then then
MNT="" MNT=""
else else