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",
"packaging_format": 1,
"description": {
"en": "A self-hosted Git service written in Go",
"fr": "A self-hosted Git service written in Go"
"en": "Lightweight git forge",
"fr": "Forge git légère"
},
"url": "http://gogs.io",
"license": "MIT",

View file

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

View file

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

View file

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