diff options
author | rabite <rabite@posteo.de> | 2019-05-28 00:50:15 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-05-28 00:51:47 +0200 |
commit | ad4e3d573fffe2412c7840319c39ca4a64c02b56 (patch) | |
tree | 06a8e64a71859fbb448cc37e523b8bcc8ab606d2 /extra/actions/application/extract.sh | |
parent | fdc4eb52d0403e041fe77f403b0dbc5686789087 (diff) |
add quick actions
Diffstat (limited to 'extra/actions/application/extract.sh')
-rwxr-xr-x | extra/actions/application/extract.sh | 10 |
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 |