mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 02:04:32 +01:00
29 lines
585 B
Bash
Executable File
29 lines
585 B
Bash
Executable File
#!/bin/bash
|
|
|
|
usage() {
|
|
echo "Usage $0 (build-linux|sync)"
|
|
}
|
|
|
|
if [ "$1" == "" ]; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
|
|
while (( "$#" )); do
|
|
case "$1" in
|
|
build-linux)
|
|
env GOOS=linux GOARCH=amd64 go build cmd/spaceDevices.go
|
|
;;
|
|
test-sync)
|
|
rsync -n -avzi --delete spaceDevices webUI root@spacegate:/home/status/spaceDevices2/
|
|
;;
|
|
sync)
|
|
rsync -avzi --delete spaceDevices webUI root@spacegate:/home/status/spaceDevices2/
|
|
;;
|
|
*)
|
|
usage
|
|
exit 1
|
|
esac
|
|
shift
|
|
done |