diff --git a/scripts/appview.sh b/scripts/appview.sh new file mode 100644 --- /dev/null +++ b/scripts/appview.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Variables +BINARY_NAME="appview" +BINARY_PATH=".bin/app" +SERVER="95.111.206.63" +USER="appview" + +# SCP the binary to root's home directory +scp "$BINARY_PATH" root@$SERVER:/root/"$BINARY_NAME" + +# SSH into the server and perform the necessary operations +ssh root@$SERVER <
{{ if .IsNew }} - A + A {{ end }} {{ if .IsDelete }} - D + D {{ end }} {{ if not (or .IsNew .IsDelete) }} - M + M {{ end }} - {{ if .Name.Old }} - {{ .Name.Old }} - {{ if .Name.New }} - → - {{ .Name.New }} - {{ end }} - {{ else }} - {{ .Name.New }} - {{- end -}} + {{ .Name.New }}
{{ $iconstyle := "p-1 mx-1 hover:bg-gray-100 rounded" }} @@ -110,15 +102,15 @@
{{ .Header }}
{{- range .Lines -}} {{- if eq .Op.String "+" -}} -
{{ .Op.String }}{{ .Line }}
+
{{ .Op.String }}{{ .Line }}
{{- end -}} {{- if eq .Op.String "-" -}} -
{{ .Op.String }}{{ .Line }}
+
{{ .Op.String }}{{ .Line }}
{{- end -}} {{- if eq .Op.String " " -}} -
{{ .Op.String }}{{ .Line }}
+
{{ .Op.String }}{{ .Line }}
{{- end -}} {{- end -}}