install.sh: --uninstall implies uninstall tala too
This commit is contained in:
parent
c9184cf5a7
commit
af63417892
2 changed files with 20 additions and 22 deletions
|
|
@ -82,6 +82,7 @@ Flags:
|
||||||
as for installation. i.e if you used --method standalone you must again use --method
|
as for installation. i.e if you used --method standalone you must again use --method
|
||||||
standalone for uninstallation. With detect, the install script will try to use the OS
|
standalone for uninstallation. With detect, the install script will try to use the OS
|
||||||
package manager to uninstall instead.
|
package manager to uninstall instead.
|
||||||
|
note: tala will also be uninstalled if installed.
|
||||||
|
|
||||||
All downloaded archives are cached into ~/.cache/d2/release. use \$XDG_CACHE_HOME to change
|
All downloaded archives are cached into ~/.cache/d2/release. use \$XDG_CACHE_HOME to change
|
||||||
path of the cached assets. Release archives are unarchived into /usr/local/lib/d2/d2-<VERSION>
|
path of the cached assets. Release archives are unarchived into /usr/local/lib/d2/d2-<VERSION>
|
||||||
|
|
@ -376,17 +377,15 @@ install_tala_brew() {
|
||||||
uninstall() {
|
uninstall() {
|
||||||
# We uninstall tala first as package managers require that it be uninstalled before
|
# We uninstall tala first as package managers require that it be uninstalled before
|
||||||
# uninstalling d2 as TALA depends on d2.
|
# uninstalling d2 as TALA depends on d2.
|
||||||
if [ "${TALA-}" ]; then
|
if command -v d2plugin-tala >/dev/null; then
|
||||||
if command -v d2plugin-tala >/dev/null; then
|
INSTALLED_VERSION="$(d2plugin-tala --version)"
|
||||||
INSTALLED_VERSION="$(d2plugin-tala --version)"
|
header "uninstalling tala-$INSTALLED_VERSION"
|
||||||
header "uninstalling tala-$INSTALLED_VERSION"
|
case $METHOD in
|
||||||
case $METHOD in
|
standalone) uninstall_tala_standalone ;;
|
||||||
standalone) uninstall_tala_standalone ;;
|
homebrew) uninstall_tala_brew ;;
|
||||||
homebrew) uninstall_tala_brew ;;
|
esac
|
||||||
esac
|
elif [ "${TALA-}" ]; then
|
||||||
else
|
warn "no version of tala installed"
|
||||||
warn "no version of tala installed"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v d2 >/dev/null; then
|
if ! command -v d2 >/dev/null; then
|
||||||
|
|
|
||||||
21
install.sh
21
install.sh
|
|
@ -546,6 +546,7 @@ Flags:
|
||||||
as for installation. i.e if you used --method standalone you must again use --method
|
as for installation. i.e if you used --method standalone you must again use --method
|
||||||
standalone for uninstallation. With detect, the install script will try to use the OS
|
standalone for uninstallation. With detect, the install script will try to use the OS
|
||||||
package manager to uninstall instead.
|
package manager to uninstall instead.
|
||||||
|
note: tala will also be uninstalled if installed.
|
||||||
|
|
||||||
All downloaded archives are cached into ~/.cache/d2/release. use \$XDG_CACHE_HOME to change
|
All downloaded archives are cached into ~/.cache/d2/release. use \$XDG_CACHE_HOME to change
|
||||||
path of the cached assets. Release archives are unarchived into /usr/local/lib/d2/d2-<VERSION>
|
path of the cached assets. Release archives are unarchived into /usr/local/lib/d2/d2-<VERSION>
|
||||||
|
|
@ -840,17 +841,15 @@ install_tala_brew() {
|
||||||
uninstall() {
|
uninstall() {
|
||||||
# We uninstall tala first as package managers require that it be uninstalled before
|
# We uninstall tala first as package managers require that it be uninstalled before
|
||||||
# uninstalling d2 as TALA depends on d2.
|
# uninstalling d2 as TALA depends on d2.
|
||||||
if [ "${TALA-}" ]; then
|
if command -v d2plugin-tala >/dev/null; then
|
||||||
if command -v d2plugin-tala >/dev/null; then
|
INSTALLED_VERSION="$(d2plugin-tala --version)"
|
||||||
INSTALLED_VERSION="$(d2plugin-tala --version)"
|
header "uninstalling tala-$INSTALLED_VERSION"
|
||||||
header "uninstalling tala-$INSTALLED_VERSION"
|
case $METHOD in
|
||||||
case $METHOD in
|
standalone) uninstall_tala_standalone ;;
|
||||||
standalone) uninstall_tala_standalone ;;
|
homebrew) uninstall_tala_brew ;;
|
||||||
homebrew) uninstall_tala_brew ;;
|
esac
|
||||||
esac
|
elif [ "${TALA-}" ]; then
|
||||||
else
|
warn "no version of tala installed"
|
||||||
warn "no version of tala installed"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v d2 >/dev/null; then
|
if ! command -v d2 >/dev/null; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue