chmod +x + fix help and formatting

This commit is contained in:
Alexandre Aubin 2024-06-09 18:53:11 +02:00
parent 960e326524
commit dac0862173

5
image_builder Normal file → Executable file
View file

@ -6,7 +6,7 @@ function help()
{
cat << EOF
Usage: ./script.sh [command] [additional args...]
Usage: ./image_builder [command] [additional args...]
The 'base' image is after yunohost install script, but before postinstall. It is fetched by ynh-dev for local development.
The 'appci' image is after postinstall, with a first user named 'package_checker' as expected by the CI (package_check)
@ -24,7 +24,8 @@ Arguments:
EOF
}
function main {
function main()
{
KNOWN_COMMANDS=$(declare -F | awk '{print $3}')
if [ -z "$1" ] || [ "$1" == "--help" ]
then