mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
13 lines
315 B
Bash
Executable File
13 lines
315 B
Bash
Executable File
# Take current path
|
|
path=$(pwd)
|
|
|
|
# Split it
|
|
IFS='\/'; arrIN=($path); unset IFS;
|
|
|
|
# Find directory before ginkgo
|
|
len=${#arrIN[@]}
|
|
|
|
userDir=${arrIN[$len-2]}
|
|
|
|
# Replace onsi with userdir
|
|
find . -type f -name '*.go' -exec sed -i '' s/github.com\\/onsi\\/ginkgo\\/internal/github.com\\/$userDir\\/ginkgo\\/internal/ {} + |