Browse Source

Fix a couple of bugs

Use `.` instead of `source`. Fix populating the index file.

Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
pull/4/head
Shawn Webb 11 months ago
parent
commit
ab3ffef917
Signed by: shawn.webb <shawn.webb@hardenedbsd.org> GPG Key ID: FF2E67A277F8E1FA
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      bin/ci.sh
  2. +3
    -3
      lib/util.sh

+ 1
- 1
bin/ci.sh View File

@@ -52,7 +52,7 @@ main() {
while getopts 'c:' o; do
case "${o}" in
c)
source "${OPTARG}"
. ${OPTARG}
;;
esac
done


+ 3
- 3
lib/util.sh View File

@@ -58,11 +58,11 @@ build_number() {
if [ -e ${HBSD_INDEX_FILE} ]; then
n=$(cat ${HBSD_INDEX_FILE})
n=$((${n} + 1))
echo ${n} | tee ${HBSD_INDEX_FILE}
return 0
else
n=1
fi

echo 1
echo ${n} | tee ${HBSD_INDEX_FILE}
return 0
}



Loading…
Cancel
Save