From a738211f50456f686fea86a7227956efbc81f6ef Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 1 Mar 2011 15:20:57 +0700 Subject: [PATCH] it's versionned, no need to be so cautious --- .../Essential-JavaScript-Design-Patterns.SlackBuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild b/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild index 35d884e3..55aab02f 100755 --- a/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild +++ b/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild @@ -19,12 +19,12 @@ PREFIX=/usr rm -fr $PKG # get sources -[ -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && mv $CWD/essentialjsdesignpatterns$VERSION.zip $CWD/essentialjsdesignpatterns$VERSION.zip.bkp -wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip +[ ! -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip mkdir -p $PKG$PREFIX/doc/$PRGNAM unzip $CWD/essentialjsdesignpatterns$VERSION.zip -d $PKG$PREFIX/doc/$PRGNAM rm -fr $PKG$PREFIX/doc/$PRGNAM/__MACOSX +find $PKG$PREFIX/doc/$PRGNAM/ -name .DS_Store -delete cd $PKG mkdir -p install