Browse Source

More debug output

bryan 2 years ago
parent
commit
489988c16d
1 changed files with 6 additions and 3 deletions
  1. 6 3
      openwrtbuilder

+ 6 - 3
openwrtbuilder

@@ -608,6 +608,9 @@ fromSource() {
 
     echo "Building from source is under development"
 
+    debug "kopts: ${P_ARR[kopts]}"
+    debug "pkgs: ${P_ARR[packages]}"
+
     # Update source code
     if [[ ! -d "$GITSRCDIR" ]]; then
         mkdir -p "$GITSRCDIR"
@@ -616,10 +619,10 @@ fromSource() {
 
     git -C "$GITSRCDIR" pull
  
-    if [[ ${P_ARR[release]} == "snapshot" ]]; then
-        git -C "$GITSRCDIR" worktree add -q -d "$GITWORKTREEDIR" master
+    if [[ $RELEASE == "snapshot" ]]; then
+        git -C "$GITSRCDIR" worktree add -d "$GITWORKTREEDIR" master
     else
-        git -C "$GITSRCDIR" worktree add -q -d "$GITWORKTREEDIR" "v$RELEASE"
+        git -C "$GITSRCDIR" worktree add -d "$GITWORKTREEDIR" "v$RELEASE"
     fi
 
     pushd "$GITWORKTREEDIR" &>/dev/null || return 1