Fixed comparison to $OS
This commit is contained in:
parent
d59295487c
commit
4228ac9b2d
1 changed files with 3 additions and 3 deletions
6
pm.sh
6
pm.sh
|
@ -2,19 +2,19 @@
|
|||
|
||||
OS=`cat $SH_CONFIG/os`
|
||||
|
||||
[ OS == "alpine" ] && \
|
||||
[ $OS == "alpine" ] && \
|
||||
alias install='apk add' && \
|
||||
alias uninstall='apk remove' && \
|
||||
alias update='apk update'
|
||||
|
||||
[ OS == "void" ] && \
|
||||
[ $OS == "void" ] && \
|
||||
alias install='xbps-install -Sy' && \
|
||||
alias installed='xbps-query -m' && \
|
||||
alias uninstall='xbps-remove -Ry' && \
|
||||
alias search='xbps-query -Rs' && \
|
||||
alias update='xbps-install -Syu'
|
||||
|
||||
[ OS == "debian" ] && \
|
||||
[ $OS == "debian" ] && \
|
||||
alias install='apt install' && \
|
||||
alias uninstall='apt remove' && \
|
||||
alias update='apt update && apt upgrade -y'
|
||||
|
|
Loading…
Reference in a new issue