Unverified Commit ab3ffef9 authored by Shawn Webb's avatar Shawn Webb
Browse files

Fix a couple of bugs



Use `.` instead of `source`. Fix populating the index file.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 0a617f4e
......@@ -52,7 +52,7 @@ main() {
while getopts 'c:' o; do
case "${o}" in
c)
source "${OPTARG}"
. ${OPTARG}
;;
esac
done
......
......@@ -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
}
......
Supports Markdown
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