Skip to content

Instantly share code, notes, and snippets.

@karenxpn
Created December 28, 2023 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenxpn/6f2dab05a957809f167292c17c152827 to your computer and use it in GitHub Desktop.
Save karenxpn/6f2dab05a957809f167292c17c152827 to your computer and use it in GitHub Desktop.
# list all folders
layerList=$(find -name 'flayer')
curDir=$(pwd)
echo executing $layerList
echo curdir is $curDir
# loop though each path
for path in $layerList
do
echo $path
## go to path
cd $path
bash lambdaLayer.sh
## go back to original dir
cd $curDir
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment