Skip to content

Instantly share code, notes, and snippets.

@takuti
Created June 16, 2019 07:03
Show Gist options
  • Save takuti/b057ecd8387ff8c8cba9ac736a127b86 to your computer and use it in GitHub Desktop.
Save takuti/b057ecd8387ff8c8cba9ac736a127b86 to your computer and use it in GitHub Desktop.
Uploading specific files in a folder to TD Workflow
#!/bin/bash
project_name=foo
project_files=(
"config/"
"scripts/"
"queries/"
"workflow1.dig"
"workflow2.dig"
)
tar -czvf $project_name.tar.gz ${project_files[@]}
td wf upload $project_name.tar.gz $project_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment