Skip to content

Commit a7b3ec7

Browse files
committed
chore: code comment bash readline
1 parent 2bf4323 commit a7b3ec7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

execute.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
# `readlink` is needed to support at least npm which symlinks this file into node_modules/.bin
4+
# The effect of `readlink -f` is to resolve the symlink to its target, so that we can find the actual directory
5+
# this file is in.
6+
#
37
basedir=$(dirname "$(readlink -f "$0" | sed -e 's,\\,/,g')")
48

59
case `uname` in

0 commit comments

Comments
 (0)