Commit e8e444d8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix $@ using, add comment

parent 2db0e719
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
fatal() fatal()
{ {
echo $@ echo "$@"
exit 1 exit 1
} }
...@@ -64,7 +64,7 @@ help_text() ...@@ -64,7 +64,7 @@ help_text()
[ "$1" == '--help' -o "$1" == '-h' ] && { help_text ; exit 0 ; } [ "$1" == '--help' -o "$1" == '-h' ] && { help_text ; exit 0 ; }
if [ -z "$@" ] ; then if [ -z "$*" ] ; then
cat /proc/mounts | grep cifs cat /proc/mounts | grep cifs
exit exit
fi fi
...@@ -80,6 +80,7 @@ fi ...@@ -80,6 +80,7 @@ fi
create_share_dir "$SHARE_PATH" create_share_dir "$SHARE_PATH"
# we have samba-client requires in spec
if [ ! -x /sbin/mount.cifs ] ; then if [ ! -x /sbin/mount.cifs ] ; then
fatal "Please install package with /sbin/mount.cifs command (samba-client or smbfs)" fatal "Please install package with /sbin/mount.cifs command (samba-client or smbfs)"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment