compatibility

This commit is contained in:
Didier Slof 2022-12-18 22:21:22 +01:00
parent ccce1d5217
commit acf3ba06c0
Signed by: didier
GPG key ID: 01E71F18AA4398E5
2 changed files with 23 additions and 2 deletions

View file

@ -1,5 +1,5 @@
^. ./sync.conf && $PM_COMMAND $PM_UPGRADE
^. ./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
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"

21
comp.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
# #################### #
# Compatibility Script #
# #################### #
if [ ! -z "$1" ]; then
cmd=$1; shift
fi
case $cmd in
debian|ubuntu|apt|deb)
PM_COMMAND=apt \
PM_NOCONFIRM=-y \
PM_INSTALL=install \
PM_UPDATE=update \
PM_UPGRADE=upgrade \
PM_REMOVE=purge \
./sync.sh "$@"
;;
*|''|arch) ./sync.sh ;;
esac