Compare commits

...

2 commits

Author SHA1 Message Date
2a4e37a5eb
main/main
Some checks failed
/ job (push) Failing after 7m2s
2024-06-21 16:26:33 +02:00
46305b4a6c
child 2024-06-21 16:12:58 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
[ -n "${PIDD_DNS}" ] || PIDD_DNS="\ [ -n "${PIDD_DNS}" ] || PIDD_DNS="\
9.9.9.9 \ 9.9.9.9 \
" "
[ -n "${PIDD_GIT_CHILD}" ] || PIDD_GIT_CHILD="cd" [ -n "${PIDD_GIT_CHILD}" ] || PIDD_GIT_CHILD="pidd"
[ -n "${PIDD_GIT_PARENT}" ] || PIDD_GIT_PARENT="rwx" [ -n "${PIDD_GIT_PARENT}" ] || PIDD_GIT_PARENT="rwx"
# main # main

View file

@ -115,12 +115,12 @@ def install_commands(path: str) -> None:
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path) (user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
def main() -> None: def main(main: str) -> None:
path, *arguments = sys.argv path, *arguments = sys.argv
name = Path(path).name name = Path(path).name
if name == "__main__.py": if name == "__main__.py":
pidd.set_ssh(*arguments) pidd.set_ssh(*arguments)
pidd.install_commands(__file__) pidd.install_commands(main)
else: else:
function = getattr(pidd, name.replace("-", "_")) function = getattr(pidd, name.replace("-", "_"))
function(*arguments) function(*arguments)