You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
253 B

#!/bin/bash
OUTFILE="$1"
BUILD_NUMBER_FROM_FILE=${OUT_DIR}/build_number.txt
if test -f "$BUILD_NUMBER_FROM_FILE"; then
cp ${BUILD_NUMBER_FROM_FILE} ${OUTFILE}
else
DATETIME=$(TZ='UTC' date +'%Y.%m.%d')
echo ${DATETIME}_local_build > ${OUTFILE}
fi