ssfs diff ssfs @ rev 74

Add POT files for client side tools
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 13 22:38:23 2011 +0200 (2011-06-13)
parents 3a2f682ce267
children 80448ddb1333
line diff
     1.1 --- a/ssfs	Mon Jun 13 20:57:43 2011 +0200
     1.2 +++ b/ssfs	Mon Jun 13 22:38:23 2011 +0200
     1.3 @@ -96,7 +96,7 @@
     1.4  	setup)
     1.5  		# We need a login and host name or IP.
     1.6  		if [ -z "$login" ] || [ -z "$host" ]; then
     1.7 -			gettext -e "\nUsage:"; echo -e \
     1.8 +			gettext "Usage:"; echo -e \
     1.9  				" $(basename $0) setup --login=user --host=server\n" && exit 0
    1.10  		fi
    1.11  		gen_config
    1.12 @@ -119,11 +119,12 @@
    1.13  	sync)
    1.14  		# Sync can be called at session startup or from cmdline to retrive
    1.15  		# files from the server.
    1.16 -		[ ! -f "$config" ] && gettext -e "Missing config file\n" && exit 1
    1.17 +		[ ! -f "$config" ] && gettext "Missing config file" && \
    1.18 +			echo "" && exit 1
    1.19  		at=$(fgrep host $config | cut -d '"' -f 2)
    1.20  		login=${at%@*}
    1.21  		host=${at#*@}
    1.22 -		gettext -e "\nSyncing from:"; echo " $login@$host"
    1.23 +		echo "" && gettext "Syncing from:"; echo " $login@$host"
    1.24  		
    1.25  		# First sync host with server.
    1.26  		rsync -r -a -v -h -z -u --delete \
    1.27 @@ -138,7 +139,8 @@
    1.28  		echo "" ;;
    1.29  	stop)
    1.30  		# Kill daemon and remove pidfile.
    1.31 -		[ ! -s "$pid" ] && gettext -e "Daemon is not running\n" && exit 0
    1.32 +		[ ! -s "$pid" ] && gettext "Daemon is not running\n" && \
    1.33 +			echo "" && exit 0
    1.34  		kill=$(cat $pid)
    1.35  		gettext "Stopping"; echo " $app PID: $kill"
    1.36  		kill $kill 2>/dev/null