From bdc21f8138062d80b44da6c0098fcbed7610a29d Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 7 Aug 2016 16:12:38 +1000 Subject: [PATCH] Fix converted icons symlink --- bin/wappalyzer-links | 59 +++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/bin/wappalyzer-links b/bin/wappalyzer-links index 3c06344d6..1d033d908 100755 --- a/bin/wappalyzer-links +++ b/bin/wappalyzer-links @@ -27,41 +27,44 @@ path="$path/src" echo "Creating hard links..." -ln -f $path/wappalyzer.js $path/drivers/firefox/lib -ln -f $path/apps.json $path/drivers/firefox/data -ln -f $path/icons/*.png $path/drivers/firefox/data/images/icons -ln -f $path/icons/*.svg $path/drivers/firefox/data/images/icons -ln -f $path/utils/*.js $path/drivers/firefox/data/js - -ln -f $path/wappalyzer.js $path/drivers/chrome/js -ln -f $path/apps.json $path/drivers/chrome -ln -f $path/icons/*.png $path/drivers/chrome/images/icons -ln -f $path/icons/converted $path/drivers/chrome/images/icons -ln -f $path/utils/*.js $path/drivers/chrome/js +ln -f $path/wappalyzer.js $path/drivers/firefox/lib +ln -f $path/apps.json $path/drivers/firefox/data +ln -f $path/icons/*.png $path/drivers/firefox/data/images/icons +ln -f $path/icons/*.svg $path/drivers/firefox/data/images/icons +ln -f $path/utils/*.js $path/drivers/firefox/data/js + +ln -f $path/wappalyzer.js $path/drivers/chrome/js +ln -f $path/apps.json $path/drivers/chrome +ln -f $path/icons/*.png $path/drivers/chrome/images/icons +ln -f $path/utils/*.js $path/drivers/chrome/js + +if [ compgen -G "$path/icons/converted/*.png" > /dev/null ]; then + ln -f $path/icons/converted/*.png $path/drivers/chrome/images/icons/converted +fi -ln -f $path/wappalyzer.js $path/drivers/bookmarklet/js -ln -f $path/icons/*.png $path/drivers/bookmarklet/images/icons -ln -f $path/icons/*.svg $path/drivers/bookmarklet/images/icons +ln -f $path/wappalyzer.js $path/drivers/bookmarklet/js +ln -f $path/icons/*.png $path/drivers/bookmarklet/images/icons +ln -f $path/icons/*.svg $path/drivers/bookmarklet/images/icons -ln -f $path/wappalyzer.js $path/drivers/html/js -ln -f $path/apps.json $path/drivers/html -ln -f $path/icons/*.png $path/drivers/html/images/icons -ln -f $path/icons/*.svg $path/drivers/html/images/icons +ln -f $path/wappalyzer.js $path/drivers/html/js +ln -f $path/apps.json $path/drivers/html +ln -f $path/icons/*.png $path/drivers/html/images/icons +ln -f $path/icons/*.svg $path/drivers/html/images/icons -ln -f $path/wappalyzer.js $path/drivers/php/js -ln -f $path/apps.json $path/drivers/php +ln -f $path/wappalyzer.js $path/drivers/php/js +ln -f $path/apps.json $path/drivers/php -ln -f $path/wappalyzer.js $path/drivers/python/js -ln -f $path/apps.json $path/drivers/python +ln -f $path/wappalyzer.js $path/drivers/python/js +ln -f $path/apps.json $path/drivers/python -ln -f $path/wappalyzer.js $path/drivers/phantomjs -ln -f $path/apps.json $path/drivers/phantomjs +ln -f $path/wappalyzer.js $path/drivers/phantomjs +ln -f $path/apps.json $path/drivers/phantomjs -ln -f $path/wappalyzer.js $path/drivers/ruby/js -ln -f $path/apps.json $path/drivers/ruby +ln -f $path/wappalyzer.js $path/drivers/ruby/js +ln -f $path/apps.json $path/drivers/ruby -ln -f $path/wappalyzer.js $path/drivers/npm -ln -f $path/apps.json $path/drivers/npm +ln -f $path/wappalyzer.js $path/drivers/npm +ln -f $path/apps.json $path/drivers/npm echo "OK"