diff --git a/0-builder b/0-builder index 8aa183b..78e9974 100644 --- a/0-builder +++ b/0-builder @@ -69,11 +69,7 @@ echo "##################" >> $COMPILED_SRC echo "# Reloader Script" >> $COMPILED_SRC echo """################## function __rebuild_bashrcd() { - bash \""""$SELF_SRC"""\" - if [[ \$? -eq 0 && \"\${1}\" == '-a' ]]; then - echo "Automatically loading compiled script." - source \""""$(readlink -f "$COMPILED_SRC")"""\" - fi + bash """$SELF_SRC""" } """ >> $COMPILED_SRC diff --git a/functions.sh b/functions.sh index b8714ea..72ce02c 100644 --- a/functions.sh +++ b/functions.sh @@ -114,10 +114,3 @@ function rv() { printf ' RV=%d \e[0m\n' $RV >&2 } -function hexy() { - python3 -c 'import sys -for v in sys.argv[1:]: - print("{:02x}".format(int(v)), end="") -print("") -' $* -} diff --git a/is_remote.sh b/is_remote.sh deleted file mode 100644 index 5b0b8da..0000000 --- a/is_remote.sh +++ /dev/null @@ -1,21 +0,0 @@ -# Detect if the current session is running on a remote server by listing parent -# processes of this shell and checking for things like sshd/tailscaled. Runs -# first because multiple other things rely on this. - - -function __is_remote() { - # names of daemon processes a remote shell might be a child process of - remote_daemons=( - sshd - ) - - is_remote=() - parent_procs="$(pstree -s $$)" - for d in ${remote_daemons[@]}; do - if [[ "$parent_procs" =~ "$d" ]]; then - return 1 - fi - done - - return 0 -}