Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Commit

Permalink
[Package] Removing bashism from install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fearenales committed Jan 18, 2016
1 parent 638b5c5 commit 2491c87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions shared/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

{ # This ensures the entire script is downloaded

ROOT_UID=0
ARRAY_SEPARATOR="#"

Expand Down Expand Up @@ -175,8 +177,8 @@ main(){
debug "Detected distribution: $OS, $OS_VERSION"

# Check if linux distribution is compatible?
SUPPORTED_DISTROS=("ubuntu" "fedora" "arch")
if ! echo ${SUPPORTED_DISTROS[@]} | grep -qw "$ID"; then
SUPPORTED_DISTROS="ubuntu fedora arch"
if ! echo ${SUPPORTED_DISTROS} | grep -qw "$ID"; then
add_report " Unsupported Linux distribution."
fail
fi
Expand Down Expand Up @@ -491,3 +493,5 @@ success() {
}

main "${@}"

} # This ensures the entire script is downloaded

0 comments on commit 2491c87

Please sign in to comment.