Browse Source

bash substititution didn't work for my /bin/sh

main
Zen 1 year ago
parent
commit
b03752f21c
  1. 4
      install
  2. 2
      spells/path-wizard

4
install

@ -9,7 +9,9 @@ if ! command -v path-wizard > /dev/null 2>&1; then
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/cantrips
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/menu
$SCRIPT_DIR/spells/path-wizard add $SCRIPT_DIR/spells/menu/bitcoin
echo "Your spellbook has been activated, please open a fresh terminal now."
echo ""
echo "Activating your spellbook now."
$SHELL
exit 0
else
echo "Ok, well the mud won't work until you install it by adding the spells directory to your PATH."

2
spells/path-wizard

@ -32,7 +32,7 @@ else
directory=$(pwd -P)
else
# If the directory is a relative path, convert it to an absolute path
if [ "${directory:0:1}" != "/" ]; then
if [ "$(echo $directory | cut -c1)" != "/" ]; then
directory=$(cd "$directory" && pwd -P)
fi
fi

Loading…
Cancel
Save