Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
add $pth (path) prefix for logfile, fix #4
Browse files Browse the repository at this point in the history
Without the fix, the logfile may be put at different places due to changing directories during the build process.
  • Loading branch information
PeterDaveHello committed Aug 30, 2015
1 parent 0937056 commit 71fb66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ pth="$(dirname $(readlink -f $0))"

. "$pth/config.sh"

rm -f $logFile
rm -f $pth/$logFile

. "$pth/colorEcho/dist/ColorEcho.bash"

function output()
{
echo "[$1] $2" >> $logFile
echo "[$1] $2" >> $pth/$logFile
case "$1" in
"Warn" )
echo.Red "$2"
Expand Down

0 comments on commit 71fb66f

Please sign in to comment.