Minor updates to output formatting in setup.sh
This commit is contained in:
parent
70be386c85
commit
ea34b63123
1 changed files with 6 additions and 4 deletions
10
setup.sh
10
setup.sh
|
@ -37,14 +37,16 @@ do
|
||||||
spaces=''
|
spaces=''
|
||||||
for (( i=0; $i < $filler; i++ )); do spaces="$spaces "; done
|
for (( i=0; $i < $filler; i++ )); do spaces="$spaces "; done
|
||||||
|
|
||||||
echo -n " $dest$spaces"
|
echo -n " $dest"
|
||||||
if [[ $action = 'linked' ]]; then
|
if [[ $action == 'linked' ]]; then
|
||||||
ln -fs "$dfdir/$dotfile" "$dest"
|
ln -fs "$dfdir/$dotfile" "$dest"
|
||||||
|
action="%F{green}$action%f"
|
||||||
|
elif [[ $action == 'skipped' ]]; then
|
||||||
action="%F{yellow}$action%f"
|
action="%F{yellow}$action%f"
|
||||||
else
|
else
|
||||||
action="%F{green}$action%f"
|
action="%F{red}red%f"
|
||||||
fi
|
fi
|
||||||
print -P $action
|
print -P "$spaces$action"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "touch $HOME/.hushlogin"
|
echo "touch $HOME/.hushlogin"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue