1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

scripts: exit on unbound variables

Fixes a package_linter warning.
This commit is contained in:
Pierre de La Morinerie 2017-02-04 19:14:21 +01:00
parent 11dfb6b884
commit 30ed4e710e
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e # Exit on error
set -eu # exit on error ; treat unset variables as error
app=mattermost

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e # Exit on error
set -eu # exit on error ; treat unset variables as error
# Retrieve arguments
domain=$1

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -e # Exit on error
set -u # treat unset variables as an error
domain=$(sudo yunohost app setting mattermost domain)
db_name="mattermost"

View file

@ -1,5 +1,6 @@
#!/bin/bash
set -e # Exit on error
set -eu # exit on error ; treat unset variables as error
# Retrieve arguments
domain=$(sudo yunohost app setting mattermost domain)