Use dirname of $0

This commit is contained in:
Jan Niklas Hasse
2015-05-11 15:18:30 +02:00
parent f1f8c3d0a7
commit 9c5f9c5be9

View File

@@ -16,7 +16,7 @@ while getopts ":fhtvw-:" opt; do
done
if [ $EXPECT_OUTPUT ]; then
"$0/../../../atom.exe" "$@"
"$(dirname $0)/../../atom.exe" "$@"
else
"$0/../../app/apm/bin/node.exe" "$0/../atom.js" "$@"
"$(dirname $0)/../app/apm/bin/node.exe" "$0/../atom.js" "$@"
fi