2022-11-17 11:30:42AM
This commit is contained in:
parent
9e42517688
commit
bdb2e36a64
2 changed files with 22 additions and 4 deletions
|
|
@ -181,8 +181,14 @@ install() {
|
||||||
if [ -n "${TALA-}" ]; then
|
if [ -n "${TALA-}" ]; then
|
||||||
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
|
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
|
||||||
fi
|
fi
|
||||||
|
log "Rerun this install script with --uninstall to uninstall"
|
||||||
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
|
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
|
||||||
logcat >&2 <<EOF
|
logcat >&2 <<EOF
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
NEXT STEPS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
Extend your \$PATH to use d2:
|
Extend your \$PATH to use d2:
|
||||||
export PATH=$PREFIX/bin:\$PATH
|
export PATH=$PREFIX/bin:\$PATH
|
||||||
Then run:
|
Then run:
|
||||||
|
|
@ -207,8 +213,11 @@ EOF
|
||||||
log " Run man d2plugin-tala for detailed docs."
|
log " Run man d2plugin-tala for detailed docs."
|
||||||
fi
|
fi
|
||||||
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() {
|
install_d2() {
|
||||||
|
|
|
||||||
15
install.sh
15
install.sh
|
|
@ -186,7 +186,7 @@ This script needs to run the following command as root:
|
||||||
$*
|
$*
|
||||||
Please install doas, sudo, or su.
|
Please install doas, sudo, or su.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -214,7 +214,7 @@ hide() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
cat "$out" >&2
|
cat "$out" >&2
|
||||||
exit "$code"
|
return "$code"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_dur() {
|
echo_dur() {
|
||||||
|
|
@ -615,8 +615,14 @@ install() {
|
||||||
if [ -n "${TALA-}" ]; then
|
if [ -n "${TALA-}" ]; then
|
||||||
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
|
log "tala-$TALA_VERSION-$OS-$ARCH has been successfully installed into $PREFIX"
|
||||||
fi
|
fi
|
||||||
|
log "Rerun this install script with --uninstall to uninstall"
|
||||||
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
|
if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then
|
||||||
logcat >&2 <<EOF
|
logcat >&2 <<EOF
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
NEXT STEPS
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
Extend your \$PATH to use d2:
|
Extend your \$PATH to use d2:
|
||||||
export PATH=$PREFIX/bin:\$PATH
|
export PATH=$PREFIX/bin:\$PATH
|
||||||
Then run:
|
Then run:
|
||||||
|
|
@ -641,8 +647,11 @@ EOF
|
||||||
log " Run man d2plugin-tala for detailed docs."
|
log " Run man d2plugin-tala for detailed docs."
|
||||||
fi
|
fi
|
||||||
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() {
|
install_d2() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue