Ticket #5062: 0001-Redirect-which-stderr-to-dev-null.patch

File 0001-Redirect-which-stderr-to-dev-null.patch, 892 bytes (added by ayleph, 9 years ago)
  • devtools/update_extlib.sh

    From e0b98958be9402af89dd081b54f1ab25740cf294 Mon Sep 17 00:00:00 2001
    From: ayleph <ayleph@thisshitistemp.com>
    Date: Tue, 10 Mar 2015 23:39:18 -0700
    Subject: [PATCH] Redirect which stderr to /dev/null
    
    ---
     devtools/update_extlib.sh | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/devtools/update_extlib.sh b/devtools/update_extlib.sh
    index b94f007..52ac775 100755
    a b set -e  
    2121
    2222# Make sure we have npm available
    2323
    24 if ! which npm > /dev/null; then
     24if ! which npm > /dev/null 2>&1; then
    2525    echo "Can't find npm, no way to install extlib :(";
    2626    exit 1;
    2727fi
    2828
    2929# Install bower if need be
    30 if which bower > /dev/null; then
     30if which bower > /dev/null 2>&1; then
    3131    BOWER=`which bower`;
    3232elif [ -f ./node_modules/.bin/bower ]; then
    3333    BOWER="./node_modules/.bin/bower";