Skip to content

Instantly share code, notes, and snippets.

@julkwel
Created September 24, 2018 16:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julkwel/b778399bb5083ae6b997ea0a9b25a9e4 to your computer and use it in GitHub Desktop.
Save julkwel/b778399bb5083ae6b997ea0a9b25a9e4 to your computer and use it in GitHub Desktop.
#!/bin/bash
#pull lv script
echo "** start **"
repos=(
"repository1"
"repository2"
"..."
)
for repo in "${repos[@]}"
do
if [ $repo==$repos[#Your repos in array#] ]
then
#Your Condition here
#Do something...
else
#Do something
fi
done
echo "** finished **"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment