ssfs diff ssfs-sh @ rev 47
ssfs-sh: add a one line help
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 12 18:33:04 2011 +0200 (2011-06-12) |
parents | d1384d21313d |
children | 217499067412 |
line diff
1.1 --- a/ssfs-sh Sun Jun 12 18:21:50 2011 +0200 1.2 +++ b/ssfs-sh Sun Jun 12 18:33:04 2011 +0200 1.3 @@ -11,6 +11,7 @@ 1.4 # Handle rsync first, user is chrooted after. 1.5 case "$@" in 1.6 *rsync*) exec /bin/sh "$@" ;; 1.7 + *help) echo "Usage: $(basename $0) [args]" && exit 0 ;; 1.8 esac 1.9 1.10 # Ssfs server config doesn't exist in chroot. 1.11 @@ -30,6 +31,5 @@ 1.12 SHELL=/bin/sh 1.13 export PS1 HOME SYNC SHELL 1.14 cd $HOME 1.15 - [ "$cmd" ] || exec /bin/sh 1.16 exec /bin/sh "$@" 1.17 fi