We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2472ae5 commit 906486eCopy full SHA for 906486e
1 file changed
soda
@@ -23,17 +23,17 @@
23
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25
if [[ -z "$SODA_HOME" ]]; then
26
- PRG="$0"
27
- while [ -h "$PRG" ] ; do
28
- ls=$(ls -ld "$PRG")
+ local script="$0"
+ while [ -h "$script" ] ; do
+ ls=$(ls -ld "$script")
29
link=$(expr "$ls" : '.*-> \(.*\)$')
30
if expr "$link" : '/.*' > /dev/null; then
31
- PRG="$link"
+ script="$link"
32
else
33
- PRG="$(dirname "$PRG")/$link"
+ script="$(dirname "$script")/$link"
34
fi
35
done
36
- SODA_HOME=$(dirname "$PRG")
+ SODA_HOME=$(dirname "$script")
37
SODA_HOME=$(cd "$SODA_HOME" && pwd -P)
38
39
[[ -z "$SODA_USER_HOME" ]] && SODA_USER_HOME=$HOME/.soda
0 commit comments