for I in $(find ~/chef-cookbooks -type d -name "cookbook*");
do
cd $I
NAME="$(basename ${I}).git"
git remote set-url origin git@github.com:project/${NAME}
git remote -v
done
IT Leader, Cloud Evangelist, Visionary & Hobbyist DJ
for I in $(find ~/chef-cookbooks -type d -name "cookbook*");
do
cd $I
NAME="$(basename ${I}).git"
git remote set-url origin git@github.com:project/${NAME}
git remote -v
done
Copyright © 2025 Andrew Shaw