Improve autoinstall and other scripts

This commit is contained in:
Tobias Reisinger 2022-12-20 01:09:47 +01:00
parent cf6ef78b67
commit 26d81c5c5e
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 26 additions and 4 deletions

View file

@ -32,13 +32,13 @@ main()
if [ -n "$1" ] && [ -e "$1" ]
then
convert "$1" "$path"
clip_image "$path"
upload_image "$path"
clip_image "$path"
else
if [ "$(flameshot gui -r | tee $path | wc -c)" -gt 0 ]
then
clip_image "$path"
upload_image "$path"
clip_image "$path"
fi
fi
}