Revamp debugging
This commit is contained in:
parent
1c3023b8ff
commit
6e35ea5206
2 changed files with 7 additions and 1 deletions
|
@ -194,6 +194,9 @@ prompt() {
|
||||||
###############################################################################
|
###############################################################################
|
||||||
##### This is the core of error handling, make sure there's no error here #####
|
##### This is the core of error handling, make sure there's no error here #####
|
||||||
|
|
||||||
|
### TODO: return "lockWhiteSur()" back for non functional syntax error handling
|
||||||
|
### and lock dir removal after immediate terminal window closing
|
||||||
|
|
||||||
if [[ -d "${WHITESUR_TMP_DIR}" ]]; then
|
if [[ -d "${WHITESUR_TMP_DIR}" ]]; then
|
||||||
start_animation; sleep 2; stop_animation; echo
|
start_animation; sleep 2; stop_animation; echo
|
||||||
|
|
||||||
|
@ -218,7 +221,7 @@ operation_aborted() {
|
||||||
local repo_ver=""
|
local repo_ver=""
|
||||||
local lines=()
|
local lines=()
|
||||||
|
|
||||||
if ! repo_ver="$(cd "${REPO_DIR}"; git log -1 --date=format-local:"%FT%T%z" --format="%ad")"; then
|
if ! repo_ver="$(cd "${REPO_DIR}"; git log -1 --date=format-local:"%FT%T%z" --format="%ad" 2> /dev/null)"; then
|
||||||
if ! repo_ver="$(date -r "${REPO_DIR}" +"%FT%T%z")"; then
|
if ! repo_ver="$(date -r "${REPO_DIR}" +"%FT%T%z")"; then
|
||||||
repo_ver="unknown"
|
repo_ver="unknown"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -22,6 +22,9 @@ install_theme_deps() {
|
||||||
! has_command xmllint || [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]; then
|
! has_command xmllint || [[ ! -r "/usr/share/gtk-engines/murrine.xml" ]]; then
|
||||||
echo; prompt -w "'glib2.0', 'sassc', 'xmllint', and 'libmurrine' are required for theme installation."
|
echo; prompt -w "'glib2.0', 'sassc', 'xmllint', and 'libmurrine' are required for theme installation."
|
||||||
|
|
||||||
|
# Be careful of some distro mechanism, some of them use rolling-release
|
||||||
|
# based installation, e.g., Arch Linux
|
||||||
|
|
||||||
if has_command zypper; then
|
if has_command zypper; then
|
||||||
rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools
|
rootify zypper in -y sassc glib2-devel gtk2-engine-murrine libxml2-tools
|
||||||
elif has_command apt; then
|
elif has_command apt; then
|
||||||
|
|
Loading…
Reference in a new issue