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
if [ $# -eq 0 ]
if [ "$#" -eq "0" ]
then
echo "Usage: $0 YOUR-MNT"
exit
fi
if [[ "$1" = "--all" ]]
if [ "$1" = "--all" ]
then
MNT=""
else