diff scripts/build_pd_heavy.sh @ 428:b27676f871d7 prerelease

Some more sh compatiblity things: no &>, no 'function'
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 16 Jun 2016 19:20:22 +0100
parents 99de323c13b3
children 2e01a9d6cb58
line wrap: on
line diff
--- a/scripts/build_pd_heavy.sh	Thu Jun 16 18:09:59 2016 +0100
+++ b/scripts/build_pd_heavy.sh	Thu Jun 16 19:20:22 2016 +0100
@@ -29,7 +29,7 @@
 
 if [ -z "$BELA_PYTHON27" ]; then
     for PY in python python2.7 ; do
-        python --version 2>&1 | grep "2\.7" &> /dev/null
+        python --version 2>&1 | grep "2\.7" >/dev/null 2>&1
         if [ $? -eq 0 ]; then
             BELA_PYTHON27=$PY
             break;
@@ -104,7 +104,7 @@
     if [ $NO_UPLOAD -eq 0 ]; then
         # remove old static files to avoid obsolete errors
         # use -rf to prevent warnings in case they do not exist
-        rm -rf "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* &>/dev/null
+        rm -rf "$projectpath"/Hv* "$projectpath"/Message* "$projectpath"/Control* "$projectpath"/Signal* >/dev/null 2>&1
 
         # invoke the online compiler
         "$BELA_PYTHON27" hvresources/uploader.py "$pdpath"/ -n bbb -g c -o "$projectpath" $RELEASE_STRING;