"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/touch/node_modules/.bin/nopt" (8 Mar 2017, 303 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
    3 
    4 case `uname` in
    5     *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
    6 esac
    7 
    8 if [ -x "$basedir/node" ]; then
    9   "$basedir/node"  "$basedir/../nopt/bin/nopt.js" "$@"
   10   ret=$?
   11 else 
   12   node  "$basedir/../nopt/bin/nopt.js" "$@"
   13   ret=$?
   14 fi
   15 exit $ret