[fix] Update arguments passed to the scripts

This commit is contained in:
Jérôme Lebleu
2016-04-26 15:30:49 +02:00
parent b822ff2cba
commit 760163f823
5 changed files with 17 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
app=ynhexample
# The last argument is the app instance name
app=${!#}
# Retrieve arguments
domain=$(sudo yunohost app setting $app domain)