diff options
author | Vicente Reyes | 2019-07-22 16:54:48 -0400 |
---|---|---|
committer | Vicente Reyes | 2019-07-22 16:54:48 -0400 |
commit | b91ffc8994bfcc90fd336af07b5c93964636dd3a (patch) | |
tree | f0c388431124171aa456839ea195d108d8266c32 /atool-desktop | |
download | aur-b91ffc8994bfcc90fd336af07b5c93964636dd3a.tar.gz |
publish atool-desktop to AUR
Diffstat (limited to 'atool-desktop')
-rwxr-xr-x | atool-desktop | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/atool-desktop b/atool-desktop new file mode 100755 index 000000000000..09ae295256f5 --- /dev/null +++ b/atool-desktop @@ -0,0 +1,30 @@ +#!/bin/sh -e + +askyn() ( + while : + do + printf '%s' "$@" ' ' + read answer + case "$answer" in + y) + return 0 + ;; + n) + return 1 + ;; + esac + done +) + +echo "Directory where extracted files will be stored:" +pwd + +for i in "$@" +do + als "$i" + if askyn 'Do you want to extract this archive? [y/n]' + then + aunpack "$i" + fi +done + |