]> Softwares of Agnibho - imagecap.git/commitdiff
Changed edit option
authorAgnibho Mondal <mondal@agnibho.com>
Fri, 16 Feb 2018 03:18:33 +0000 (08:48 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Fri, 16 Feb 2018 03:18:33 +0000 (08:48 +0530)
imagecap

index 6ec76be2926688a9d846d69e5e68eb19dfc3c65f..6f2b86b3b947ca1ce60baaafd7e51c04bdef0146 100755 (executable)
--- 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";