Skip to content

Commit a7a271f

Browse files
committed
Fix paths, use var for path
1 parent c41a372 commit a7a271f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

git_update_scripts/github-webhook.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22
set -e #this forces an exit on any error
3-
#log location - /home/factorio/backend_scripts/github_webhook_output.txt
43
#folder=$1 repository=$2 branch=$3 map=$4 cleanup=$5 debug=$6
54

6-
/home/factorio/backend_scripts/update-from-args.sh develop origin develop default false false >> "/home/factorio/backend_scripts/github_webhook_output.txt"
7-
/home/factorio/backend_scripts/update-from-args.sh crashsite origin develop crash_site false false >> "/home/factorio/backend_scripts/github_webhook_output.txt"
8-
/home/factorio/backend_scripts/update-from-args.sh dev-debug origin develop default false true >> "/home/factorio/backend_scripts/github_webhook_output.txt"
5+
script_path='/home/factorio/backend_scripts/git_update_scripts/update-from-args.sh'
6+
7+
{
8+
"$script_path" develop origin develop default false false
9+
"$script_path" crashsite origin develop crash_site false false
10+
"$script_path" dev-debug origin develop default false true
11+
} >> '/home/factorio/backend_scripts/logs/github_webhook_output.txt'

0 commit comments

Comments
 (0)