12 lines
183 B
Bash
Executable File
12 lines
183 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
if [[ -n "$1" ]]; then
|
|
go build -ldflags="-s -w -X main.version_string=$1" -o tw ./twitter
|
|
else
|
|
go build -ldflags="-s -w" -o tw ./twitter
|
|
fi
|
|
chmod +x tw
|