From 46376f924254000204b2b7f5e330e0b5ba2b8116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 31 Dec 2024 11:02:43 +0100 Subject: [PATCH] setbg: simplify conditional statements. --- setbg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setbg b/setbg index a261975..fcc4bc6 100755 --- a/setbg +++ b/setbg @@ -1,12 +1,12 @@ -#!/bin/sh +#!/bin/bash if [ $# -gt 1 ] then echo "Too many arguments" exit 1 +elif [ $# -eq 1 ] +then + cp $1 $HOME/.local/share/wallpaper.jpg fi -[ $# -eq 1 ] && - cp $1 $HOME/.local/share/wallpaper.jpg - xwallpaper --zoom $HOME/.local/share/wallpaper.jpg