mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
minor chmod adapter fixes (#197)
This commit is contained in:
parent
9d41d6c390
commit
54ab2ca3bb
@ -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]
|
||||
|
||||
|
0
share/adapters/chmod.sh
Normal file → Executable file
0
share/adapters/chmod.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user