Skip to content

Commit

Permalink
Dir separator.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Sep 7, 2024
1 parent 20edc42 commit baba4f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ ensure_cmd dirname
ensure_cmd mktemp
ensure_cmd install
function install_from_url() {
set -x
local url="$1"
local dest="$2"

Expand All @@ -135,7 +134,6 @@ function install_from_url() {
fi

green "Installed ${url} to ${dest}"
set +x
}

ensure_cmd cat
Expand Down Expand Up @@ -193,7 +191,8 @@ while (($# > 0)); do
done

ARCH="$(determine_arch)"
INSTALL_DEST="${INSTALL_PREFIX}/${INSTALL_FILE}"
DIRSEP=$([[ "${OS}" == "windows" ]] && echo "\\" || echo "/")
INSTALL_DEST="${INSTALL_PREFIX}${DIRSEP}${INSTALL_FILE}"
DL_EXT=$([[ "${OS}" == "windows" ]] && echo ".exe" || echo "")
DL_URL="https://github.com/a-scie/lift/releases/${VERSION}/science-fat-${OS}-${ARCH}${DL_EXT}"

Expand Down

0 comments on commit baba4f4

Please sign in to comment.