diff options
author | toonn <toonn@toonn.io> | 2019-05-05 21:50:38 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-05-05 21:50:38 +0200 |
commit | 5ae67755cfa84177613b48a698b4ed58e9751fc4 (patch) | |
tree | b1a1b6598ebc87a0ea8565f3419b102c2ff2635a /ranger | |
parent | bc47bc24fe45aaa4b8f3502a5d11187962692bd1 (diff) | |
parent | 12dc544cd6d435c3846d4189c165b99345cffaa9 (diff) | |
download | ranger-5ae67755cfa84177613b48a698b4ed58e9751fc4.tar.gz |
Merge branch 'chmod_000'
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/config/commands.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 36a6070e..cb2207ce 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1028,8 +1028,9 @@ class chmod(Command): def execute(self): mode_str = self.rest(1) if not mode_str: - if not self.quantifier: - self.fm.notify("Syntax: chmod <octal number>", bad=True) + if self.quantifier is None: + self.fm.notify("Syntax: chmod <octal number> " + "or specify a quantifier", bad=True) return mode_str = str(self.quantifier) |