Bug 1473276 'which' is non-standard, use 'command -v' in partials r=mtabara
authorSimon Fraser <sfraser@mozilla.com>
Wed, 04 Jul 2018 11:33:13 +0000
changeset 814169 1e689eca8d9851b49cc88dedd4832224d94e9183
parent 814168 3a55ffabd7478cdceb632213a4aef2c4bab58c75
child 814170 87d1695413a06d82eafcb5a7f5f06f89aa82217a
push id115123
push userjdescottes@mozilla.com
push dateWed, 04 Jul 2018 17:42:29 +0000
reviewersmtabara
bugs1473276
milestone63.0a1
Bug 1473276 'which' is non-standard, use 'command -v' in partials r=mtabara This will start to cause an error when a newer shellcheck is available in CI Differential Revision: https://phabricator.services.mozilla.com/D1940
taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh
--- a/taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh
+++ b/taskcluster/docker/funsize-update-generator/scripts/mbsdiff_hook.sh
@@ -15,17 +15,17 @@ LOCAL_CACHE_DIR=
 # Don't cache files smaller than this, as it's slower with S3
 # Bug 1437473
 CACHE_THRESHOLD=500000
 
 
 NAMESPACE='releng.releases.partials'
 if [ -e "${HOME}/.dogrc" ]
 then
-    METRIC_CMD="$(which dog)"
+    METRIC_CMD="$(command -v dog)"
 else
     METRIC_CMD="echo"
 fi
 METRIC_PARAMS="--type gauge --no_host"
 
 if [ -n "${BRANCH}" ]
 then
     if [ -n "${TAGS}" ]; then TAGS="${TAGS},"; fi