From: Frank Brehm Date: Wed, 6 Nov 2019 16:39:59 +0000 (+0100) Subject: Applying shellcheck to bin/xtract-xlate-msgs.sh X-Git-Tag: 1.3.7~1^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c5f5a424bc77a6c07c1c7d64abb51358faf61641;p=pixelpark%2Fcreate-terraform.git Applying shellcheck to bin/xtract-xlate-msgs.sh --- diff --git a/bin/xtract-xlate-msgs.sh b/bin/xtract-xlate-msgs.sh index 38630e0..bfaa08f 100755 --- a/bin/xtract-xlate-msgs.sh +++ b/bin/xtract-xlate-msgs.sh @@ -6,8 +6,8 @@ set -u this_script=$( readlink -f "$0" ) cur_dir=$( pwd ) -base_dir=$( dirname $( dirname "${this_script}" ) ) -cd ${base_dir} +base_dir=$( dirname "$( dirname "${this_script}" )" ) +cd "${base_dir}" locale_dir=locale locale_domain="create_terraform" @@ -20,8 +20,7 @@ if [[ ! -d "lib" ]] ; then exit 3 fi -pkg_version=$( cat lib/cr_tf/__init__.py | \ - grep '^[ ]*__version__' | \ +pkg_version=$( grep '^[ ]*__version__' lib/cr_tf/__init__.py | \ sed -e 's/[ ]*//g' | \ awk -F= '{print $2}' | \ sed -e "s/^'//" -e "s/'\$//" )