allowed -git version on arch
This commit is contained in:
parent
d66c4350f5
commit
054d42a4fc
@ -21,6 +21,7 @@ function OS_DEPENDENCY__SETUP() {
|
|||||||
case $OS_NAME in
|
case $OS_NAME in
|
||||||
arch )
|
arch )
|
||||||
OS_INSTALL() { OS_INSTALL__ARCH $@; }
|
OS_INSTALL() { OS_INSTALL__ARCH $@; }
|
||||||
|
YAY__INSTALL_FROM_SOURCE
|
||||||
;;
|
;;
|
||||||
debian | ubuntu )
|
debian | ubuntu )
|
||||||
OS_INSTALL() { OS_INSTALL__DEBIAN $@; }
|
OS_INSTALL() { OS_INSTALL__DEBIAN $@; }
|
||||||
@ -64,13 +65,12 @@ function OS_INSTALL__ARCH() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
CHECK "checking for $TARGET"
|
CHECK "checking for $TARGET"
|
||||||
pacman -Qq | grep -q "^$TARGET$" && OK || {
|
pacman -Qq | grep -q "^$TARGET$\|^$TARGET-git$" && OK || {
|
||||||
WARN "$TARGET not found"
|
WARN "$TARGET not found"
|
||||||
CHECK "installing $TARGET"
|
CHECK "installing $TARGET"
|
||||||
sudo pacman -Syu --noconfirm $TARGET >>$LOG 2>&1 \
|
sudo pacman -Syu --noconfirm $TARGET >>$LOG 2>&1 \
|
||||||
&& OK || { WARN "failed to install $TARGET"; return 1; }
|
&& OK || { WARN "failed to install $TARGET"; return 1; }
|
||||||
}
|
}
|
||||||
YAY__INSTALL_FROM_SOURCE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function OS_INSTALL__DEBIAN() {
|
function OS_INSTALL__DEBIAN() {
|
||||||
|
Loading…
Reference in New Issue
Block a user