1
0
Fork 0
freesewing/scripts/taskrunner.sh

19 lines
339 B
Bash
Raw Normal View History

#!/bin/bash
# This will iterate over all directories in packages
# so you can do once-off maintenance like removing
# node_modules folders and things like that.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CUR=`pwd`
cd $DIR
for d in ../packages/*/ ; do {
cd $d
# do something here
cd ..
}
done
cd $CUR