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:
parent
11dfb6b884
commit
30ed4e710e
4 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e # Exit on error
|
set -eu # exit on error ; treat unset variables as error
|
||||||
|
|
||||||
app=mattermost
|
app=mattermost
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e # Exit on error
|
set -eu # exit on error ; treat unset variables as error
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e # Exit on error
|
set -u # treat unset variables as an error
|
||||||
|
|
||||||
domain=$(sudo yunohost app setting mattermost domain)
|
domain=$(sudo yunohost app setting mattermost domain)
|
||||||
db_name="mattermost"
|
db_name="mattermost"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e # Exit on error
|
set -eu # exit on error ; treat unset variables as error
|
||||||
|
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting mattermost domain)
|
domain=$(sudo yunohost app setting mattermost domain)
|
||||||
|
|
Loading…
Add table
Reference in a new issue