mirror of
https://github.com/NohamR/papeer.git
synced 2026-05-25 12:27:20 +00:00
chain selctors, depth & quiet options, split main commands
This commit is contained in:
@@ -18,10 +18,17 @@ do
|
||||
if [ $GOOS = "windows" ]; then
|
||||
output_name+='.exe'
|
||||
fi
|
||||
|
||||
|
||||
env GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'An error has occurred! Aborting the script execution...'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $GOOS = "windows" ]; then
|
||||
zip "$output_name.exe.zip" "$output_name"
|
||||
else
|
||||
tar czvf "$output_name.tar.gz" "$output_name"
|
||||
fi
|
||||
rm "$output_name"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user