From 4f0b227f08ae847375347131dcbeb2ccea3cd2a0 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Thu, 4 Jul 2019 21:23:56 -0700 Subject: [PATCH] updated to be shorter and dash compliant --- bread | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bread b/bread index 0434987..466ccce 100755 --- a/bread +++ b/bread @@ -1,9 +1,6 @@ #!/bin/bash -book=$(ls $HOME/Books/ | dmenu -i -l 15) -if [ -z "$book" ] +book=`ls $HOME/Books/ | dmenu -i -l 15` +if [ ! -z "$book" ] then - exit 0 -else zathura "$HOME/Books/$book" fi -#zathura "$HOME/Books/$book"