Skip to content

Commit 96676d2

Browse files
committed
echoing commands optional with -v
1 parent b9c8ab6 commit 96676d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deploy.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ deploy_branch=gh-pages
88
default_username=deploy.sh
99
default_email=XX1011+deploy.sh@gmail.com
1010

11-
#echo expanded commands as they are executed, in case something goes wrong
12-
set -o xtrace
11+
if [[ $1 = "-v" || $1 = "--verbose" ]]; then
12+
#echo expanded commands as they are executed
13+
set -o xtrace
14+
fi
1315

1416
commit_title=`git log -n 1 --format="%s" HEAD`
1517
commit_hash=`git log -n 1 --format="%H" HEAD`

0 commit comments

Comments
 (0)