compatibility
This commit is contained in:
parent
9772702105
commit
e97067be10
2 changed files with 23 additions and 2 deletions
|
@ -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
21
comp.sh
Executable 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
|
Loading…
Reference in a new issue