Update bashbrew to fail more directly on missing library files

This works around the busybox "readlink" implementation being slightly different from GNU's which would cause failures without any error output.
This commit is contained in:
Tianon Gravi 2015-11-11 09:42:33 -08:00 committed by Joe Ferguson
parent 6621da8aac
commit 14f9a93796
1 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,12 @@ for repoTag in "${repos[@]}"; do
repoFile="$library/$repo"
fi
if [ ! -f "$repoFile" ]; then
echo >&2 "error: '$repoFile' does not exist!"
didFail=1
continue
fi
repoFile="$(readlink -f "$repoFile")"
echo "$repoTag ($repoFile)" >> "$logDir/repos.txt"