From bb21b9ce09a3dab46a801535b4dd02084affbc01 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 11 Sep 2014 17:01:54 +0200 Subject: [PATCH] Remove unused variable script_dir This variable used to be set based on either $HOME or $script_path. However, $script_path is no longer set, so when $HOME is unset there will be an 'dirname: missing operand' error message. $script_dir is no longer used either, so we can safely remove it entirely. --- src/universal/bin/sbt-launch-lib.bash | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/universal/bin/sbt-launch-lib.bash b/src/universal/bin/sbt-launch-lib.bash index 7f576f2d1..5bb490746 100755 --- a/src/universal/bin/sbt-launch-lib.bash +++ b/src/universal/bin/sbt-launch-lib.bash @@ -6,12 +6,6 @@ # TODO - Should we merge the main SBT script with this library? -if test -z "$HOME"; then - declare -r script_dir="$(dirname $script_path)" -else - declare -r script_dir="$HOME/.sbt" -fi - declare -a residual_args declare -a java_args declare -a scalac_args