Delete empty log files
This prevents "bashbrew/logs/latest/list-.....".
This commit is contained in:
parent
081a9194bb
commit
22a64a3e89
|
|
@ -270,7 +270,8 @@ while [ "$#" -gt 0 ]; do
|
||||||
|
|
||||||
thisLog="$logDir/$subcommand-$repoTag.log"
|
thisLog="$logDir/$subcommand-$repoTag.log"
|
||||||
touch "$thisLog"
|
touch "$thisLog"
|
||||||
ln -sf "$thisLog" "$latestLogDir/$(basename "$thisLog")"
|
thisLogSymlink="$latestLogDir/$(basename "$thisLog")"
|
||||||
|
ln -sf "$thisLog" "$thisLogSymlink"
|
||||||
|
|
||||||
case "$subcommand" in
|
case "$subcommand" in
|
||||||
build)
|
build)
|
||||||
|
|
@ -373,6 +374,10 @@ while [ "$#" -gt 0 ]; do
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ ! -s "$thisLog" ]; then
|
||||||
|
rm "$thisLog" "$thisLogSymlink"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -z "$didFail" ]
|
[ -z "$didFail" ]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue