about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorjakanakae-envangel <jakanakaevangeli@chiru.no>2018-08-25 09:25:44 +0200
committerjakanakae-envangel <jakanakaevangeli@chiru.no>2018-08-25 09:25:44 +0200
commit1e8dbdea782bf4928f8df7ff1768b1fa646a3a5c (patch)
tree4fb7b83a6ac0bb093dcc86070ac47e85a8c3da8a
parent2abdc70358dc7eefab81c436d5b09946964a148e (diff)
downloadranger-1e8dbdea782bf4928f8df7ff1768b1fa646a3a5c.tar.gz
scope.sh: Handle archive filenames starting with '-'
-rwxr-xr-xranger/data/scope.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index d66f33a1..c0847551 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -156,14 +156,14 @@ handle_image() {
         #     [ "$bsd" ] && fn=$(printf '%b' "$fn")
         #
         #     if [ "$tar" ] && [ -z "$bsd" ]; then
-        #         tar --extract --to-stdout --file "${FILE_PATH}" "$fn" > \
+        #         tar --extract --to-stdout --file "${FILE_PATH}" -- "$fn" > \
         #             "${IMAGE_CACHE_PATH}" && exit 6
         #         rm -- "${IMAGE_CACHE_PATH}"
         #         return
         #     fi
         #     # bsdtar and unzip need escaping.
         #     fne=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g')
-        #     bsdtar --extract --to-stdout --file "${FILE_PATH}" "$fne" > \
+        #     bsdtar --extract --to-stdout --file "${FILE_PATH}" -- "$fne" > \
         #         "${IMAGE_CACHE_PATH}" && exit 6
         #     rm -- "${IMAGE_CACHE_PATH}"
         #     if [ "$rar" ]; then