Compare commits
No commits in common. "2a4e37a5eb61ef17c228d46fa9d9075c0788f8ec" and "1166653935bd314e938a14d48bbe83726009c74a" have entirely different histories.
2a4e37a5eb
...
1166653935
2 changed files with 3 additions and 3 deletions
2
pidd.sh
2
pidd.sh
|
@ -4,7 +4,7 @@
|
|||
[ -n "${PIDD_DNS}" ] || PIDD_DNS="\
|
||||
9.9.9.9 \
|
||||
"
|
||||
[ -n "${PIDD_GIT_CHILD}" ] || PIDD_GIT_CHILD="pidd"
|
||||
[ -n "${PIDD_GIT_CHILD}" ] || PIDD_GIT_CHILD="cd"
|
||||
[ -n "${PIDD_GIT_PARENT}" ] || PIDD_GIT_PARENT="rwx"
|
||||
|
||||
# main
|
||||
|
|
|
@ -115,12 +115,12 @@ def install_commands(path: str) -> None:
|
|||
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
|
||||
|
||||
|
||||
def main(main: str) -> None:
|
||||
def main() -> None:
|
||||
path, *arguments = sys.argv
|
||||
name = Path(path).name
|
||||
if name == "__main__.py":
|
||||
pidd.set_ssh(*arguments)
|
||||
pidd.install_commands(main)
|
||||
pidd.install_commands(__file__)
|
||||
else:
|
||||
function = getattr(pidd, name.replace("-", "_"))
|
||||
function(*arguments)
|
||||
|
|
Loading…
Reference in a new issue