From c5f5a424bc77a6c07c1c7d64abb51358faf61641 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 6 Nov 2019 17:39:59 +0100 Subject: [PATCH] Applying shellcheck to bin/xtract-xlate-msgs.sh --- bin/xtract-xlate-msgs.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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/'\$//" ) -- 2.39.5