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:
+1
-3
@@ -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
Reference in New Issue
Block a user