os/arch (panel-notify): determine interactivity from arg list
This commit is contained in:
parent
a922bd56eb
commit
400beb088b
|
@ -6,12 +6,7 @@ if ! pgrep lemonbar >/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CWD=$(dirname $0)
|
CWD=$(dirname $0)
|
||||||
if [[ -t 0 ]]; then
|
if (( $# > 0 )); then
|
||||||
if (( $# == 0 )); then
|
|
||||||
>&2 echo "Usage: panel_update.sh [LEMON_TO_UPDATE]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
:*) LEMON="$CWD/lemons/${1#?}"
|
:*) LEMON="$CWD/lemons/${1#?}"
|
||||||
if [[ ! -f $LEMON ]]; then
|
if [[ ! -f $LEMON ]]; then
|
||||||
|
|
Loading…
Reference in a new issue