From f12fb8302f39ab9b6bf1c0f5bcdd8ca1aab63e77 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 28 Feb 2020 13:33:18 +0100 Subject: [PATCH] fetch-upstream-resources: remove dead code for "LOCAL" variable Signed-off-by: Sebastiaan van Stijn --- _scripts/fetch-upstream-resources.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/_scripts/fetch-upstream-resources.sh b/_scripts/fetch-upstream-resources.sh index 3dbd68a143..c4029fa7fc 100755 --- a/_scripts/fetch-upstream-resources.sh +++ b/_scripts/fetch-upstream-resources.sh @@ -13,23 +13,6 @@ sedi () { sed --version >/dev/null 2>&1 && sed -i -- "$@" || sed -i "" "$@" } -# Assume non-local mode until we check for -l -LOCAL=0 - -while getopts ":hl" opt; do - case ${opt} in - l ) LOCAL=1 - echo "Running in local mode" - break - ;; - \? ) echo "Usage: $0 [-h] | -l" - echo "When running in local mode, operates on the current working directory." - echo "Otherwise, operates on md_source in the scope of the Dockerfile" - break - ;; - esac -done - # Do some sanity-checking to make sure we are running this from the right place if ! [ -f _config.yml ]; then echo "Could not find _config.yml. We may not be in the right place. Bailing."