Skip to content
Snippets Groups Projects
Commit 032e3a9d authored by Nathan Bockisch's avatar Nathan Bockisch
Browse files

Try to fix wildcard issue in command execution

parent 296a704d
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1420WS-1807: Utility for copying GMVA directories to staging area for ingestion
......@@ -22,6 +22,7 @@ package copy
import (
"os"
"os/exec"
"path/filepath"
"strings"
"gitlab.nrao.edu/ssa/gocapo/capo/config"
"gitlab.nrao.edu/ssa/gocapo/helpers"
......@@ -55,6 +56,11 @@ func CopyGmva(dir string) {
// GMVA source only copies files starting with GMVA
gmvaSourceFiles := strings.Join([]string{gmvaSourcePath, dir, "GMVA*"}, "/")
var gmvaSourcePaths []string
gmvaSourcePaths, err = filepath.Glob(gmvaSourceFiles)
checkError(err)
gmvaSourceFiles = strings.Join(gmvaSourcePaths[:], " ")
vlbiTargetDir := strings.Join([]string{vlbiStagingPath, dir}, "/")
// First make the directory to copy files to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment