summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger.py')
-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-)"