Fix install script for macos

This commit is contained in:
crschnick 2024-06-15 13:16:51 +00:00
parent 8f49c35aca
commit 368612b70f

View file

@ -206,7 +206,8 @@ while getopts 'sv:' OPTION; do
esac esac
done done
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(command -v pacman)" ]; then if [ "$(uname -s)" = "Linux" ]; then
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(command -v pacman)" ]; then
info "Installing from AUR at $aur" info "Installing from AUR at $aur"
rm -rf "/tmp/xpipe_aur" || true rm -rf "/tmp/xpipe_aur" || true
if [[ -z "$version" ]] ; then if [[ -z "$version" ]] ; then
@ -218,12 +219,13 @@ if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && [ -x "$(comma
makepkg -si makepkg -si
launch launch
exit 0 exit 0
fi fi
if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && ! [ -x "$(command -v pacman)" ]; then if ! [ -x "$(command -v apt)" ] && ! [ -x "$(command -v rpm)" ] && ! [ -x "$(command -v pacman)" ]; then
info "Installation is not supported on this system (no apt, rpm, pacman). Can you try a portable version of $product_name?" info "Installation is not supported on this system (no apt, rpm, pacman). Can you try a portable version of $product_name?"
info "https://github.com/xpipe-io/xpipe#portable" info "https://github.com/xpipe-io/xpipe#portable"
exit 1 exit 1
fi
fi fi
download_archive="$( download_archive="$(