Skip to content

Commit

Permalink
Use dirname in win/apm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 10, 2015
1 parent 082a9f6 commit f59382d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion resources/win/apm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh

"$0/../../app/apm/bin/node.exe" "$0/../../app/apm/lib/cli.js" "$@"
directory=$(dirname "$0")
"$directory/../app/apm/bin/node.exe" "$directory/../app/apm/lib/cli.js" "$@"
6 changes: 4 additions & 2 deletions resources/win/atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ while getopts ":fhtvw-:" opt; do
esac
done

directory=$(dirname "$0")

if [ $EXPECT_OUTPUT ]; then
"$(dirname $0)/../../atom.exe" "$@"
"$directory/../../atom.exe" "$@"
else
"$(dirname $0)/../app/apm/bin/node.exe" "$0/../atom.js" "$@"
"$directory/../app/apm/bin/node.exe" "$directory/atom.js" "$@"
fi

0 comments on commit f59382d

Please sign in to comment.