diff --git a/install b/install index 50eaa28513edd81608eb1ae4fdd3efbf69d21b47..30f1f9276ad3bc5f96b1bdf6a0eb6734ef8e8bca 100755 --- a/install +++ b/install @@ -1,7 +1,8 @@ #!/bin/bash # Get the base directory relative to the home directory -BASEDIR="$(realpath --relative-to=${HOME} "$(dirname ${BASH_SOURCE[0]})")" +BASEDIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" +BASEDIR="${BASEDIR#"$(realpath "$HOME")/"}" # Bash