remove error handler, fix pfetch and crap
This commit is contained in:
parent
11004129d6
commit
08226f1221
2 changed files with 4 additions and 11 deletions
|
@ -1,5 +1,6 @@
|
||||||
^. ./sync.conf && $PM_COMMAND $PM_UPGRADE $PM_NOCONFIRM
|
^. ./sync.conf && $PM_COMMAND $PM_UPGRADE $PM_NOCONFIRM
|
||||||
^[ -d /tmp/yay ] && rm -rf /tmp/yay
|
^[ -d /tmp/yay ] && rm -rf /tmp/yay || printf ""
|
||||||
git clone https://aur.archlinux.org/yay /tmp/yay
|
command -v yay || (git clone https://aur.archlinux.org/yay /tmp/yay && (cd /tmp/yay && makepkg --noconfirm -si))
|
||||||
cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM
|
^[ -d /tmp/pfetch ] && rm -rf /tmp/pfetch || printf ""
|
||||||
|
^git clone https://github.com/dylanaraps/pfetch.git /tmp/pfetch && cd /tmp/pfetch && (chmod a+x ./pfetch && $SYS_SUDO mv ./pfetch /usr/local/pfetch)
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"
|
||||||
|
|
8
sync.sh
8
sync.sh
|
@ -57,14 +57,6 @@ main() {
|
||||||
bool "$RUN_CMDS" && _run_cmds
|
bool "$RUN_CMDS" && _run_cmds
|
||||||
}
|
}
|
||||||
|
|
||||||
err_handler() {
|
|
||||||
echo "Something went wrong!"
|
|
||||||
echo "You can look at what went wrong by running this script more verbosely"
|
|
||||||
echo "Sorry!"
|
|
||||||
}
|
|
||||||
|
|
||||||
trap err_handler ERR
|
|
||||||
|
|
||||||
echo "# exec: start."
|
echo "# exec: start."
|
||||||
bool ${TIME_TRACK:-no} && time main "$@" || main "$@"
|
bool ${TIME_TRACK:-no} && time main "$@" || main "$@"
|
||||||
echo "# exec: done."
|
echo "# exec: done."
|
||||||
|
|
Loading…
Reference in a new issue