fix native install on opensuse - issue 941

check $OSTYPE against "linux" as well as "linux-gnu"
This commit is contained in:
Noah Birnel 2018-08-23 14:05:07 -07:00
parent 9c68598b06
commit 50fd234da2

View file

@ -24,6 +24,8 @@ native_loc="https://raw.githubusercontent.com/cmcaine/tridactyl/master/native/na
# Decide where to put the manifest based on OS
if [[ "$OSTYPE" == "linux-gnu" ]]; then
manifest_home="$HOME/.mozilla/native-messaging-hosts/"
elif [[ "$OSTYPE" == "linux" ]]; then
manifest_home="$HOME/.mozilla/native-messaging-hosts/"
elif [[ "$OSTYPE" == "darwin"* ]]; then
manifest_home="$HOME/Library/Application Support/Mozilla/NativeMessagingHosts/"
fi