Skip to content

Commit

Permalink
moving linux debug to the top. Enabling debug by default
Browse files Browse the repository at this point in the history
  • Loading branch information
saadbruno committed Aug 18, 2020
1 parent 03dc0ee commit a051ec9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions perforce_discord_webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Note that for the p4 triggers command to work, the linux user running the p4d needs to have access to the script, and the p4 user running "p4 describe" needs read access to the depot.

# Uncomment this to enable debugging
# exec &> $(dirname "$0")/output.log
exec &> $(dirname "$0")/output.log

printf ":: Running perforce_discord_webhook.sh\n\n"

Expand All @@ -38,6 +38,15 @@ curl -H "Content-Type: application/json" \
$2

printf "\n\n===== DEBUG =====
:: Linux user:
$(whoami)
:: Linux path:
$(pwd)
:: p4 info:
$(p4 info)
:: output:
$OUTPUT
Expand All @@ -55,9 +64,4 @@ $1
:: Arg 2:
$2
:: Linux user:
$(whoami)
:: p4 info:
$(p4 info)"
"

0 comments on commit a051ec9

Please sign in to comment.