From d0fa7a8aa3b805247104a001e3d357ee67a993e7 Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:05 +0200 Subject: [PATCH] remove error handler, fix pfetch and crap --- command.list | 7 ++++--- sync.sh | 8 -------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/command.list b/command.list index 4437ba9..1d2f022 100644 --- a/command.list +++ b/command.list @@ -1,5 +1,6 @@ ^. ./sync.conf && $PM_COMMAND $PM_UPGRADE $PM_NOCONFIRM -^[ -d /tmp/yay ] && rm -rf /tmp/yay -git clone https://aur.archlinux.org/yay /tmp/yay -cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM +^[ -d /tmp/yay ] && rm -rf /tmp/yay || printf "" +command -v yay || (git clone https://aur.archlinux.org/yay /tmp/yay && (cd /tmp/yay && makepkg --noconfirm -si)) +^[ -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" diff --git a/sync.sh b/sync.sh index 79b7d1f..f6a850e 100755 --- a/sync.sh +++ b/sync.sh @@ -57,14 +57,6 @@ main() { 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." bool ${TIME_TRACK:-no} && time main "$@" || main "$@" echo "# exec: done."