summarylogtreecommitdiffstats
path: root/atool-desktop
diff options
context:
space:
mode:
authorVicente Reyes2019-07-22 16:54:48 -0400
committerVicente Reyes2019-07-22 16:54:48 -0400
commitb91ffc8994bfcc90fd336af07b5c93964636dd3a (patch)
treef0c388431124171aa456839ea195d108d8266c32 /atool-desktop
downloadaur-b91ffc8994bfcc90fd336af07b5c93964636dd3a.tar.gz
publish atool-desktop to AUR
Diffstat (limited to 'atool-desktop')
-rwxr-xr-xatool-desktop30
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
+