Created
September 24, 2018 16:21
-
-
Save julkwel/b778399bb5083ae6b997ea0a9b25a9e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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