summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-11 21:02:53 +0200
committerhut <hut@lavabit.com>2010-09-11 21:02:53 +0200
commit471fc68047418ec7af877598b19696837ed7750c (patch)
tree793e586a80e94e2b764c59aabfc7ee017806abbe
parent73e3ab44213174e1f01a06cf51ca9fd53ee35ea6 (diff)
downloadranger-471fc68047418ec7af877598b19696837ed7750c.tar.gz
ranger.py: fixed escape in embedded shellscript
-rwxr-xr-xranger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger.py b/ranger.py
index cc7f14ed..010ca04b 100755
--- a/ranger.py
+++ b/ranger.py
@@ -23,7 +23,7 @@
 # after you exit ranger by starting it with: source ranger ranger
 """":
 if [ $1 ]; then
-	if [ -z $XDG_CONFIG_HOME ]; then
+	if [ -z "$XDG_CONFIG_HOME" ]; then
 		$@ --fail-unless-cd && cd "$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)"
 	else
 		$@ --fail-unless-cd && cd "$(grep \^\' "$XDG_CONFIG_HOME"/ranger/bookmarks | cut -b3-)"