summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-11 23:47:35 +0200
committerhut <hut@lavabit.com>2010-09-11 23:47:35 +0200
commit63a9639d62c208f78d9e5c8740f10cce74a4e967 (patch)
tree08dc6a89c6be4d55448456c94477fa3a277b9b38
parent27eec7c6b53303acfd7713f7cc696ea50894a6b1 (diff)
downloadranger-63a9639d62c208f78d9e5c8740f10cce74a4e967.tar.gz
ranger.py Fixed embedded shellscript (quotes for bash)
-rwxr-xr-xranger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger.py b/ranger.py
index 010ca04b..5652ba69 100755
--- a/ranger.py
+++ b/ranger.py
@@ -24,9 +24,9 @@
 """":
 if [ $1 ]; then
 	if [ -z "$XDG_CONFIG_HOME" ]; then
-		$@ --fail-unless-cd && cd "$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)"
+		"$@" --fail-unless-cd && cd "$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)"
 	else
-		$@ --fail-unless-cd && cd "$(grep \^\' "$XDG_CONFIG_HOME"/ranger/bookmarks | cut -b3-)"
+		"$@" --fail-unless-cd && cd "$(grep \^\' "$XDG_CONFIG_HOME"/ranger/bookmarks | cut -b3-)"
 	fi
 else
 	echo "usage: source path/to/ranger.py path/to/ranger.py"