diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-11-16 20:18:21 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-16 20:18:21 -0600 |
commit | a135267a52114c9072ba56f00beca771da1fc34e (patch) | |
tree | b3afad567e036eb3565329b4a02870edbff0cd75 /development | |
parent | cfe4fcae87076135f66227697f0cb95afe00918d (diff) | |
download | slackbuilds-a135267a52114c9072ba56f00beca771da1fc34e.tar.gz |
development/npm2tgz: Tweaked tarball extraction routine
github's archive download system is braindead.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/npm2tgz/npm2tgz.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/development/npm2tgz/npm2tgz.SlackBuild b/development/npm2tgz/npm2tgz.SlackBuild index 4799d1accb..561c914fcc 100644 --- a/development/npm2tgz/npm2tgz.SlackBuild +++ b/development/npm2tgz/npm2tgz.SlackBuild @@ -23,7 +23,16 @@ set -e # Exit on most errors rm -fr $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$SRCNAM + +if [ -e $CWD/$VERSION.tar.gz ]; then + tar xvf $CWD/$SRCNAM +elif [ -e $CWD/$PRGNAM-$VERSION.tar.gz ]; then + tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +else + echo "Source tarball is unusable or not found." + exit 1 +fi + cd $PRGNAM-$VERSION chown -R root.root . find . \ |