X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a4d8c8e5caa11cb5301bedeb4aa29c880f599a2c..a7f73be9fd898dbafddc6f081b52c783acc80b97:/toolchain/sed/sedcheck.sh?ds=sidebyside diff --git a/toolchain/sed/sedcheck.sh b/toolchain/sed/sedcheck.sh index 4d645b6ab..de15ac2f1 100755 --- a/toolchain/sed/sedcheck.sh +++ b/toolchain/sed/sedcheck.sh @@ -11,11 +11,15 @@ fi; echo "HELLO" > .sedtest $SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1 -if [ $? != 0 ] ; then - echo build-sed-host-binary -else - echo use-sed-host-binary -fi; +case "$1" in + *) + if [ $? != 0 ] ; then + echo build-sed-host-binary + else + echo use-sed-host-binary + fi; + ;; +esac rm -f .sedtest