Commit 7ad8e1e1 by John Jarvis

factoring out the ascii fix to a separate bash script

parent 832f990e
......@@ -17,6 +17,11 @@
export BOTO_CONFIG=/var/lib/jenkins/${aws_account}.boto
dir=$(dirname $0)
source "${dir}/ascii-convert.sh"
if [[ -z $dns_name ]]; then
echo "The hostname is required to know what machine to configure"
exit 1
......
......@@ -19,16 +19,8 @@
# - name_tag
export BOTO_CONFIG=/var/lib/jenkins/${aws_account}.boto
function ascii_convert {
echo $1 | iconv -f utf8 -t ascii//TRANSLIT//IGNORE
}
# remove non-ascii chars from build user vars
BUILD_USER_LAST_NAME=$(ascii_convert $BUILD_USER_LAST_NAME)
BUILD_USER_FIRST_NAME=$(ascii_convert $BUILD_USER_FIRST_NAME)
BUILD_USER_ID=$(ascii_convert $BUILD_USER_ID)
BUILD_USER=$(ascii_convert $BUILD_USER)
dir=$(dirname $0)
source "${dir}/ascii-convert.sh"
if [[ -z $github_username ]]; then
github_username=$BUILD_USER_ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment