Skip to content

Commit

Permalink
chore: code comment bash readline
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jan 10, 2025
1 parent 2bf4323 commit a7b3ec7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions execute.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

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

case `uname` in
Expand Down

0 comments on commit a7b3ec7

Please sign in to comment.