Commit 20cda46b authored by Andrew's avatar Andrew

i

parent d8c568b9
......@@ -29,8 +29,8 @@ R_VERSION=$(grep -oP ${VERSION_REGEXP} <<< ${CODE})
L_VERSION=$(grep -oP ${VERSION_REGEXP} ${CODE_PATH})
if [[ ${R_VERSION} != ${L_VERSION} ]]; then
[[ -z "$SCRIPT_HEADER" ]] || CODE="${SCRIPT_HEADER}\n${CODE}"
echo -e ${CODE} >${CODE_PATH}
[[ -z "$SCRIPT_HEADER" ]] || printf -v CODE '%s\n%s' "$SCRIPT_HEADER" "$CODE"
echo ${CODE} >${CODE_PATH}
[ "$GZIP_CODE" != true ] || gzip -q -f -9 -k ${CODE_PATH}
fi
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