Commit 98288fe0 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added initial shell project structure

parent 709dd78d
image: debian:bullseye-slim
before_script:
- apt update -y
- apt install -y git make shellcheck golang-go
- export GOPATH="$HOME/go"
- export PATH="$PATH:$GOPATH/bin"
- go get -u github.com/mvdan/sh/cmd/shfmt
linters:
script:
- make check
SOURCES=./spearhead
LENGTH=96
check: $(SOURCES)
shellcheck -x $^
shfmt -i 2 -d $^
format: $(SOURCES)
shfmt -i 2 -w $^
#!/bin/bash
#
# spearhead
# Copyright (C) 2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#######################################
# Main function of this script
# Globals:
# None
# Arguments:
# None
#######################################
function main() {
printf "Hello world\n"
}
# Call main function of the script
main
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment