Browse Source

Fix install path error

install-script
Luke Childs 3 years ago
parent
commit
3b742bdaa4
  1. 8
      scripts/install

8
scripts/install

@ -156,7 +156,7 @@ install_docker_compose() {
install_umbrel() { install_umbrel() {
version=$(get_umbrel_version) version=$(get_umbrel_version)
curl --location "https://api.github.com/repos/${UMBREL_REPO}/tarball/${version}" | \ curl --location "https://api.github.com/repos/${UMBREL_REPO}/tarball/${version}" | \
tar --extract --gzip --strip-components=1 --directory="${INSTALL_PATH}" tar --extract --gzip --strip-components=1 --directory="${UMBREL_INSTALL_PATH}"
} }
main() { main() {
@ -174,10 +174,10 @@ main() {
if [[ "${INSTALL_UMBREL}" = "true" ]] if [[ "${INSTALL_UMBREL}" = "true" ]]
then then
mkdir -p "${INSTALL_PATH}" mkdir -p "${UMBREL_INSTALL_PATH}"
if [[ "$(ls --almost-all "${INSTALL_PATH}")" ]] if [[ "$(ls --almost-all "${UMBREL_INSTALL_PATH}")" ]]
then then
echo "Error: Umbrel install path \"${INSTALL_PATH}\" already contains files" echo "Error: Umbrel install path \"${UMBREL_INSTALL_PATH}\" already contains files"
exit 1 exit 1
fi fi
fi fi

Loading…
Cancel
Save