Toastie 1 year ago
parent
commit
7c7ef3cb22
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bootrap-bullseye.sh

+ 2 - 2
bootrap-bullseye.sh

@@ -32,10 +32,10 @@ netNTP=pool.ntp.org
 [ -f ./config.sh ] && source config.sh
 
 # Check if the function exists
-if declare -f "$1" > /dev/null
+if declare -f "$1()" > /dev/null
 then
   # call arguments verbatim
-  "$@"
+  "$@()"
 else
   # Show a helpful error
   echo "Valid functions are: grmlnetwork, prepare, install, bootloader, postinstall" >&2