mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 74c0e39f874ae7bab179a160c739f8838202ea30
parent 088c0161a2b71f57e3df2b2800fed3f0d8e82109
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 21 Dec 2016 11:50:08 +0100

fix condition

Diffstat:
urxvtpwd | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/urxvtpwd b/urxvtpwd @@ -24,10 +24,10 @@ TITLE=$(xprop -id "$ID" | grep -m1 WM_NAME) MYPWD=$(echo "$TITLE" | cut -d'$' -f1 | cut -d'"' -f2- | cut -d':' -f2-) MYPWD2="${MYPWD/#\~/$HOME}" -if [ -z "$MYPWD2" -a -d "$MYPWD2" -a -r "$MYPWD2" -a -x "$MYPWD2" ] +if [ ! -z "$MYPWD2" -a -d "$MYPWD2" -a -r "$MYPWD2" -a -x "$MYPWD2" ] then - exec $quoted_args -else exec $quoted_args -cd "$MYPWD2" +else + exec $quoted_args fi