1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

minor chmod adapter fixes (#197)

This commit is contained in:
Igor Chubin
2020-05-29 17:54:25 +00:00
parent 9d41d6c390
commit 54ab2ca3bb
2 changed files with 1 additions and 3 deletions
+1 -3
View File
@@ -154,12 +154,10 @@ class AdapterChmod(CommandAdapter):
def _get_command(self, topic, request_options=None):
cmd = self._command[:]
if not cmd[0].startswith("/"):
cmd[0] = _get_abspath(cmd[0])
# cut chmod/ off
if topic.startswith("chmod/"):
topic = topic[4:]
topic = topic[6:]
return cmd + [topic]
Regular → Executable
View File