Compare commits
2 commits
1166653935
...
2a4e37a5eb
Author | SHA1 | Date | |
---|---|---|---|
2a4e37a5eb | |||
46305b4a6c |
2 changed files with 3 additions and 3 deletions
2
pidd.sh
2
pidd.sh
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue