Nicer output when skipping installs
This commit is contained in:
parent
6c937fe5d0
commit
b1b6b52fc8
|
@ -42,7 +42,7 @@ for prog in $@; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [[ -e $install_path/${prog:t} && ! $force ]]; then
|
if [[ -e $install_path/${prog:t} && ! $force ]]; then
|
||||||
error "$prog already exists at $install_path. Skipping."
|
warning "$prog already exists at $install_path. Skipping."
|
||||||
else
|
else
|
||||||
ln -fsr $prog $install_path
|
ln -fsr $prog $install_path
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
autoload -Uz colors && colors
|
autoload -Uz colors && colors
|
||||||
|
|
||||||
local c_fail="${fg_bold[red]}✘$reset_color"
|
local c_fail="${fg_bold[red]}✘$reset_color"
|
||||||
|
local c_warn="${fg_bold[yellow]}⚠$reset_color"
|
||||||
local c_success="${fg_bold[green]}✔$reset_color"
|
local c_success="${fg_bold[green]}✔$reset_color"
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
@ -16,8 +17,10 @@ result() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fail() { result $c_fail $@ }
|
fail() { result $c_fail $@ }
|
||||||
|
warn() { result $c_warn $@ }
|
||||||
succeed() { result $c_success $@ }
|
succeed() { result $c_success $@ }
|
||||||
error() { echo -n " "; fail $@ }
|
error() { echo -n " "; fail $@ }
|
||||||
|
warning() { echo -n " "; warn $@ }
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
local missing
|
local missing
|
||||||
|
|
Loading…
Reference in a new issue