summaryrefslogtreecommitdiffstats
path: root/extra/actions/application/extract.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/actions/application/extract.sh')
-rwxr-xr-xextra/actions/application/extract.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/actions/application/extract.sh b/extra/actions/application/extract.sh
new file mode 100755
index 0000000..51c8c0f
--- /dev/null
+++ b/extra/actions/application/extract.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+which 7z >/dev/null && EXTRACTOR="7z x"
+# Prefer aunpack
+which aunpack >/dev/null && EXTRACTOR=aunpack
+
+
+for file in "$@"; do
+ echo $EXTRACTOR "$file";
+done