summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-16 05:46:25 +0200
committerhut <hut@lavabit.com>2010-10-16 05:46:25 +0200
commitfe7f8ca0d2d3946f22a29d357086281e95185591 (patch)
tree387b547bdb13c4b291bed2883908f90f1f5c59a0
parent70540ba6060224156fd7cf29d77369e2abb06598 (diff)
downloadranger-fe7f8ca0d2d3946f22a29d357086281e95185591.tar.gz
Polished ranger.py
-rwxr-xr-xranger.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger.py b/ranger.py
index fbceab23..240b3687 100755
--- a/ranger.py
+++ b/ranger.py
@@ -1,5 +1,5 @@
 #!/usr/bin/python -O
-# coding=utf-8
+# -*- coding: utf-8 -*-
 #
 # Ranger: Explore your forest of files from inside your terminal
 # Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
@@ -20,7 +20,7 @@
 # Embed a script which allows you to change the directory of the parent shell
 # after you exit ranger.  Run it with the command: source ranger ranger
 """":
-if [ $1 ]; then
+if [ ! -z "$1" ]; then
 	$@ --fail-unless-cd &&
 	if [ -z "$XDG_CONFIG_HOME" ]; then
 		cd "$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)"
@@ -36,7 +36,7 @@ return 1
 import sys
 
 # When using the --clean option, not even bytecode should be written.
-# Need to find out if --clean is used as soon as possible.
+# Thus, we need to find out if --clean is used as soon as possible.
 try:
 	argv = sys.argv[0:sys.argv.index('--')]
 except: