install.sh: Improvements
This commit is contained in:
parent
5ee11417e4
commit
3478ffbc5a
4 changed files with 9 additions and 45 deletions
|
|
@ -207,16 +207,12 @@ main() {
|
||||||
if [ -n "${UNINSTALL-}" ]; then
|
if [ -n "${UNINSTALL-}" ]; then
|
||||||
uninstall
|
uninstall
|
||||||
if [ -n "${DRY_RUN-}" ]; then
|
if [ -n "${DRY_RUN-}" ]; then
|
||||||
bigheader "***********
|
bigheader "Rerun without --dry-run to execute printed commands and perform install."
|
||||||
Rerun without --dry-run to execute printed commands and perform install.
|
|
||||||
***********"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
install
|
install
|
||||||
if [ -n "${DRY_RUN-}" ]; then
|
if [ -n "${DRY_RUN-}" ]; then
|
||||||
bigheader "***********
|
bigheader "Rerun without --dry-run to execute printed commands and perform install."
|
||||||
Rerun without --dry-run to execute printed commands and perform install.
|
|
||||||
***********"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -277,13 +273,6 @@ EOF
|
||||||
log "Run man d2plugin-tala for detailed TALA docs."
|
log "Run man d2plugin-tala for detailed TALA docs."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
logcat >&2 <<EOF
|
|
||||||
|
|
||||||
Something not working? Please let us know:
|
|
||||||
https://github.com/terrastruct/d2/issues
|
|
||||||
https://github.com/terrastruct/d2/discussions
|
|
||||||
https://discord.gg/NF6X8K4eDq
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_post_brew() {
|
install_post_brew() {
|
||||||
|
|
@ -298,13 +287,6 @@ install_post_brew() {
|
||||||
if [ -n "${TALA-}" ]; then
|
if [ -n "${TALA-}" ]; then
|
||||||
log "Run man d2plugin-tala for detailed TALA docs."
|
log "Run man d2plugin-tala for detailed TALA docs."
|
||||||
fi
|
fi
|
||||||
logcat >&2 <<EOF
|
|
||||||
|
|
||||||
Something not working? Please let us know:
|
|
||||||
https://github.com/terrastruct/d2/issues
|
|
||||||
https://github.com/terrastruct/d2/discussions
|
|
||||||
https://discord.gg/NF6X8K4eDq
|
|
||||||
EOF
|
|
||||||
|
|
||||||
VERSION=$(brew info d2 | head -n1 | cut -d' ' -f4)
|
VERSION=$(brew info d2 | head -n1 | cut -d' ' -f4)
|
||||||
VERSION=${VERSION%,}
|
VERSION=${VERSION%,}
|
||||||
|
|
|
||||||
|
|
@ -273,9 +273,9 @@ header() {
|
||||||
|
|
||||||
bigheader() {
|
bigheader() {
|
||||||
set -- "$(echo "$*" | sed "s/^/ * /")"
|
set -- "$(echo "$*" | sed "s/^/ * /")"
|
||||||
FGCOLOR=${FGCOLOR:-5} logp "/**
|
FGCOLOR=${FGCOLOR:-3} logp "/****************************************************************
|
||||||
$*
|
$*
|
||||||
**/"
|
****************************************************************/"
|
||||||
}
|
}
|
||||||
|
|
||||||
# humanpath replaces all occurrences of " $HOME" with " ~"
|
# humanpath replaces all occurrences of " $HOME" with " ~"
|
||||||
|
|
|
||||||
2
ci/sub
2
ci/sub
|
|
@ -1 +1 @@
|
||||||
Subproject commit a3961af4299a6b9e642ebce305609f091eb7e88d
|
Subproject commit 718a738a16a9de19ec8d5f9654a9bb94546d8898
|
||||||
26
install.sh
26
install.sh
|
|
@ -278,9 +278,9 @@ header() {
|
||||||
|
|
||||||
bigheader() {
|
bigheader() {
|
||||||
set -- "$(echo "$*" | sed "s/^/ * /")"
|
set -- "$(echo "$*" | sed "s/^/ * /")"
|
||||||
FGCOLOR=${FGCOLOR:-5} logp "/**
|
FGCOLOR=${FGCOLOR:-3} logp "/****************************************************************
|
||||||
$*
|
$*
|
||||||
**/"
|
****************************************************************/"
|
||||||
}
|
}
|
||||||
|
|
||||||
# humanpath replaces all occurrences of " $HOME" with " ~"
|
# humanpath replaces all occurrences of " $HOME" with " ~"
|
||||||
|
|
@ -790,16 +790,12 @@ main() {
|
||||||
if [ -n "${UNINSTALL-}" ]; then
|
if [ -n "${UNINSTALL-}" ]; then
|
||||||
uninstall
|
uninstall
|
||||||
if [ -n "${DRY_RUN-}" ]; then
|
if [ -n "${DRY_RUN-}" ]; then
|
||||||
bigheader "***********
|
bigheader "Rerun without --dry-run to execute printed commands and perform install."
|
||||||
Rerun without --dry-run to execute printed commands and perform install.
|
|
||||||
***********"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
install
|
install
|
||||||
if [ -n "${DRY_RUN-}" ]; then
|
if [ -n "${DRY_RUN-}" ]; then
|
||||||
bigheader "***********
|
bigheader "Rerun without --dry-run to execute printed commands and perform install."
|
||||||
Rerun without --dry-run to execute printed commands and perform install.
|
|
||||||
***********"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -860,13 +856,6 @@ EOF
|
||||||
log "Run man d2plugin-tala for detailed TALA docs."
|
log "Run man d2plugin-tala for detailed TALA docs."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
logcat >&2 <<EOF
|
|
||||||
|
|
||||||
Something not working? Please let us know:
|
|
||||||
https://github.com/terrastruct/d2/issues
|
|
||||||
https://github.com/terrastruct/d2/discussions
|
|
||||||
https://discord.gg/NF6X8K4eDq
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_post_brew() {
|
install_post_brew() {
|
||||||
|
|
@ -881,13 +870,6 @@ install_post_brew() {
|
||||||
if [ -n "${TALA-}" ]; then
|
if [ -n "${TALA-}" ]; then
|
||||||
log "Run man d2plugin-tala for detailed TALA docs."
|
log "Run man d2plugin-tala for detailed TALA docs."
|
||||||
fi
|
fi
|
||||||
logcat >&2 <<EOF
|
|
||||||
|
|
||||||
Something not working? Please let us know:
|
|
||||||
https://github.com/terrastruct/d2/issues
|
|
||||||
https://github.com/terrastruct/d2/discussions
|
|
||||||
https://discord.gg/NF6X8K4eDq
|
|
||||||
EOF
|
|
||||||
|
|
||||||
VERSION=$(brew info d2 | head -n1 | cut -d' ' -f4)
|
VERSION=$(brew info d2 | head -n1 | cut -d' ' -f4)
|
||||||
VERSION=${VERSION%,}
|
VERSION=${VERSION%,}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue