1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

[enh] linter fixes:

- remove: add 'set -u'.
- install: retrieve arguments from env var.
- manifest: update descriptions.
- _common.sh: use 'ynh_die' helper.
This commit is contained in:
Moul 2017-04-05 21:06:22 +02:00
parent d2b1d19c53
commit fa69e63bda
4 changed files with 11 additions and 9 deletions

View file

@ -4,8 +4,8 @@
"id": "gogs", "id": "gogs",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "A self-hosted Git service written in Go", "en": "Lightweight git forge",
"fr": "A self-hosted Git service written in Go" "fr": "Forge git légère"
}, },
"url": "http://gogs.io", "url": "http://gogs.io",
"license": "MIT", "license": "MIT",

View file

@ -17,9 +17,8 @@ elif [ -n "$(uname -m | grep 86)" ]; then
elif [ -n "$(uname -m | grep arm)" ]; then elif [ -n "$(uname -m | grep arm)" ]; then
ARCHITECTURE="raspi2_armv6" ARCHITECTURE="raspi2_armv6"
else else
echo 'Unable to detect your achitecture, please open a bug describing \ ynh_die "Unable to detect your achitecture, please open a bug describing \
your hardware and the result of the command "uname -m".' your hardware and the result of the command \"uname -m\"." 1
exit 1
fi fi
# Remote URL to fetch Gogs tarball # Remote URL to fetch Gogs tarball

View file

@ -3,10 +3,10 @@
set -euo pipefail set -euo pipefail
# Retrieve arguments # Retrieve arguments
domain=$1 domain=$YNH_APP_ARG_DOMAIN
path=$2 path=$YNH_APP_ARG_PATH
admin=$3 admin=$YNH_APP_ARG_ADMIN
is_public=$4 is_public=$YNH_APP_ARG_PUBLIC_SITE
# Load common variables # Load common variables
source ./_common.sh source ./_common.sh

View file

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# Exit and treat unset variables as an error
set -u
# Load common variables and helpers # Load common variables and helpers
source ./_common.sh source ./_common.sh