Updating all KRL apps under a directorySubmitted by jessie on Mon, 10/29/2012 - 11:11am |
I have all of my KRL apps I am working on checked out in a specific directory on my machine. There are times where there are a series of rulesets that I am working on with another developer. At times, one or the other of us will make changes in several different rulesets, making it a pain to know which apps to update and to go through each of these individually.
To solve this problem, I have put together a bash script which changes directories into all first lever directories under your current directory. It then runs 'krl update' in each of these subdirectories. So, without further adeiu, here's the script!
for D in */; do
cd $D
krl update
cd ..
done
Yup, it is that simple.
- jessie's blog
- 590 reads