Find a file
Dan Church b9cbdbad36
Fix complaints from shellcheck
List of complaints fixed:

In npm2tgz line 45:
if [ "x$1" == "x" ] || [ "x$1" == "x--help" ] || [ "x$1" == "x-h" ]; then
     ^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.
           ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
                         ^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.
                               ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
                                                   ^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.
                                                         ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.

Did you mean:
if [ "$1" == "" ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then

In npm2tgz line 98:
cd "$PKG"
^-------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Did you mean:
cd "$PKG" || exit

For more information:
  https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...
  https://www.shellcheck.net/wiki/SC3014 -- In POSIX sh, == in place of = is ...
  https://www.shellcheck.net/wiki/SC2268 -- Avoid x-prefix in comparisons as ...
2023-07-29 11:42:16 -05:00
.gitignore thought it was managed when it wasn't 2013-04-01 23:06:22 +02:00
LICENSE first commit 2013-04-01 22:51:22 +02:00
npm2tgz Fix complaints from shellcheck 2023-07-29 11:42:16 -05:00
README renamed because github ruined the formatting 2013-04-01 23:34:16 +02:00

npm2tgz generates a Slackware compatible package from a node module
  usage: <OPTIONS> npm2tgz <modules_name>
  The resulting package is located under /tmp
  possible OPTIONS are:
    BUILD=<value>  (currently: 1)
    TAG=<value>    (currently: SBo)
    OUTPUT=<value> (currently: /tmp)
    ARCH=<value>   (currently: npmjs)
    PREFIX=<value> (currently: /usr)
    NPMBIN=<value> (currently: /usr/bin/npm)