From 80c1f78cb55923980a2121dac2dfa2d330669fdd Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 29 Apr 2003 13:50:05 +0000 Subject: [PATCH] update from Han --- util/fbsetbg | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/util/fbsetbg b/util/fbsetbg index 0aa0a31e..09bcc776 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -23,7 +23,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -# $Id: fbsetbg,v 1.3 2003/04/29 11:26:34 rathnor Exp $ +# $Id: fbsetbg,v 1.4 2003/04/29 13:50:05 fluxgen Exp $ # # Portability notes: @@ -49,7 +49,7 @@ WHOAMI=`whoami` # Functions display_usage() { cat <&2 + display_usage + exit 1 + fi + if [ -z "$1" ];then + message 'No wallpaper to set' >&2 + display_usage + exit 1 + fi + ;; esac option=${option:=$full} wallpaper=${wallpaper:=$1} -if [ -z "$wallpaper" ];then - message 'No wallpaper to set' - exit 1 -fi if [ ! -r "$wallpaper" ];then message "Can't find wallpaper $wallpaper"