2022-11-17 11:30:42AM

This commit is contained in:
Alexander Wang 2022-11-17 11:30:42 -08:00
parent 9e42517688
commit bdb2e36a64
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
2 changed files with 22 additions and 4 deletions

View file

@ -181,8 +181,14 @@ install() {
if [ -n "${TALA-}" ]; then
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
fi
log "Rerun this install script with --uninstall to uninstall"
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
logcat >&2 <<EOF
%%%%%%%%%%%%%%%%%%%%%%%%%
NEXT STEPS
%%%%%%%%%%%%%%%%%%%%%%%%%
Extend your \$PATH to use d2:
export PATH=$PREFIX/bin:\$PATH
Then run:
@ -207,8 +213,11 @@ EOF
log " Run man d2plugin-tala for detailed docs."
fi
fi
logcat >&2 <<EOF
log "Rerun the install script with --uninstall to uninstall"
Something not working? Please let us know:
https://github.com/terrastruct/d2/issues/new
EOF
}
install_d2() {

View file

@ -186,7 +186,7 @@ This script needs to run the following command as root:
$*
Please install doas, sudo, or su.
EOF
exit 1
return 1
fi
}
@ -214,7 +214,7 @@ hide() {
return
fi
cat "$out" >&2
exit "$code"
return "$code"
}
echo_dur() {
@ -615,8 +615,14 @@ install() {
if [ -n "${TALA-}" ]; then
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
fi
log "Rerun this install script with --uninstall to uninstall"
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
logcat >&2 <<EOF
%%%%%%%%%%%%%%%%%%%%%%%%%
NEXT STEPS
%%%%%%%%%%%%%%%%%%%%%%%%%
Extend your \$PATH to use d2:
export PATH=$PREFIX/bin:\$PATH
Then run:
@ -641,8 +647,11 @@ EOF
log " Run man d2plugin-tala for detailed docs."
fi
fi
logcat >&2 <<EOF
log "Rerun the install script with --uninstall to uninstall"
Something not working? Please let us know:
https://github.com/terrastruct/d2/issues/new
EOF
}
install_d2() {