diff --git a/scripts/APPIMAGE_INSTALL.sh b/scripts/APPIMAGE_INSTALL.sh index e8cafc890..8599cd5a5 100644 --- a/scripts/APPIMAGE_INSTALL.sh +++ b/scripts/APPIMAGE_INSTALL.sh @@ -1,10 +1,10 @@ -#!/usr/bin/env +#!/usr/bin/env sh # exit on error set -e # Move to script's directory -SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" cd "${SCRIPT_DIR}" #add .desktop file (which should allow most DE's easy access to the program diff --git a/scripts/DYNAMIC_INSTALL.sh b/scripts/DYNAMIC_INSTALL.sh index 77660d4b8..a9fbc2c40 100644 --- a/scripts/DYNAMIC_INSTALL.sh +++ b/scripts/DYNAMIC_INSTALL.sh @@ -1,10 +1,10 @@ -#!/usr/bin/env +#!/usr/bin/env sh # exit on error set -e # Move to script's directory -SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" cd "${SCRIPT_DIR}" #add .desktop file (which should allow most DE's easy access to the program