fix: commit only when website has been updated
parent
28a5378e92
commit
680c71503c
|
@ -109,9 +109,12 @@ deploy() {
|
||||||
/bin/rm -rf *
|
/bin/rm -rf *
|
||||||
cp -r $tmp_dir/* .
|
cp -r $tmp_dir/* .
|
||||||
git add --all
|
git add --all
|
||||||
|
if [ ! -z $(git status --porcelain) ];
|
||||||
|
then
|
||||||
git commit \
|
git commit \
|
||||||
--author="$3" \
|
--author="$3" \
|
||||||
--message="new deploy: $(date --iso-8601=seconds)"
|
--message="new deploy: $(date --iso-8601=seconds)"
|
||||||
|
fi
|
||||||
git checkout $original_branch
|
git checkout $original_branch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue