From: Agnibho Mondal Date: Fri, 16 Feb 2018 03:18:33 +0000 (+0530) Subject: Changed edit option X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=a4f1d530d3723731258205dfae2288892360bdfc;p=imagecap.git Changed edit option --- diff --git a/imagecap b/imagecap index 6ec76be..6f2b86b 100755 --- a/imagecap +++ b/imagecap @@ -46,13 +46,13 @@ function update(){ function view(){ if [ -n "$IMG" ];then - feh -q --action1 ";$SELF e '%f'" --info "exiftool -S -s -b -comment '%f'" --scale-down --draw-tinted --start-at "$IMG" "$DIR"; + feh -q --action1 ";$SELF -e '%f'" --info "exiftool -S -s -b -comment '%f'" --scale-down --draw-tinted --start-at "$IMG" "$DIR"; else - feh -q --action1 ";$SELF e '%f'" --info "exiftool -S -s -b -comment '%f'" --scale-down --draw-tinted "$DIR"; + feh -q --action1 ";$SELF -e '%f'" --info "exiftool -S -s -b -comment '%f'" --scale-down --draw-tinted "$DIR"; fi } -if [ "$1" == "e" ];then +if [ "$1" == "-e" ];then update "$2"; else view "$1";