Fix jlmkr code + startship dbg message

This commit is contained in:
Lockszmith (kateryna) 2024-09-19 10:35:09 -04:00
parent 7ce0f968e8
commit 88252d2c29
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@ if is_cmd midclt; then
if [ -n "$SCALE_POOL_ROOT" ]; then if [ -n "$SCALE_POOL_ROOT" ]; then
if [ -e "$SCALE_POOL_ROOT/jailmaker/jlmkr.py" ]; then if [ -e "$SCALE_POOL_ROOT/jailmaker/jlmkr.py" ]; then
#alias jlmkr="bash -c '_jlmkr() { $SCALE_POOL_ROOT/jailmaker/jlmkr.py \${@:---help}; }; _jlmkr \$@' " #alias jlmkr="bash -c '_jlmkr() { $SCALE_POOL_ROOT/jailmaker/jlmkr.py \${@:---help}; }; _jlmkr \$@' "
jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; } function jlmkr() { sudo $SCALE_POOL_ROOT/jailmaker/jlmkr.py "${@:---help}"; }
fi fi
fi fi
fi fi

View File

@ -3,5 +3,11 @@
if is_cmd load-starship; then if is_cmd load-starship; then
. <( load-starship - ) . <( load-starship - )
[[ -n "${DBG}" ]] && echo "starship loaded." [[ -n "${DBG}" ]] && echo "starship loaded."
elif [[ -n "${DBG}" ]]; then
>&2 printf '%s\n' \
'starship is not installed, you can install by running:' \
'\tcurl -sS https://starship.rs/install.sh | FORCE=1 BIN_DIR=$HOME/bin sh > /dev/null' \
''
fi fi