# HG changeset patch # User Jie Kang # Date 1484675787 18000 # Node ID 815ff6e26855ff3087e4f9796d6e7c5d9a76cc1c # Parent a92d602216ad113639198a46854f8359b5ad1440 Fix thermostat-command-channel and thermostat-setup scripts. PR3238 Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-January/022001.html diff -r a92d602216ad -r 815ff6e26855 distribution/scripts/thermostat-command-channel --- a/distribution/scripts/thermostat-command-channel Tue Jan 17 12:19:56 2017 -0500 +++ b/distribution/scripts/thermostat-command-channel Tue Jan 17 12:56:27 2017 -0500 @@ -74,7 +74,6 @@ fi # TODO Maybe there is a more reliable way to do this -CWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" THIS_SCRIPT="$CWD/thermostat-command-channel" SCRIPT_OWNER=$(stat -c '%U' "$THIS_SCRIPT") diff -r a92d602216ad -r 815ff6e26855 distribution/scripts/thermostat-setup --- a/distribution/scripts/thermostat-setup Tue Jan 17 12:19:56 2017 -0500 +++ b/distribution/scripts/thermostat-setup Tue Jan 17 12:56:27 2017 -0500 @@ -37,7 +37,7 @@ ##################################################################### # Source thermostat-functions from same directory as this script -. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"/thermostat-functions +. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"/thermostat-common echo "THIS SCRIPT IS DEPRECATED! Please use 'thermostat setup -c' instead." 1>&2 # Call the thermostat non-gui version of setup