Skip to content

Instantly share code, notes, and snippets.

@emilfolino
Last active November 29, 2019 06:37
Show Gist options
  • Save emilfolino/2b2d41fca551598dc62f5a224289ff69 to your computer and use it in GitHub Desktop.
Save emilfolino/2b2d41fca551598dc62f5a224289ff69 to your computer and use it in GitHub Desktop.
vulnerabilities
#!/usr/bin/env bash
repos=("slideorama" "auth" "showyourcity" "jsramverk.me" "ramverk2-me" "me-vue" "me-angular" "simulate-stock" "callbacks" "jsramverk" "gomoku")
for repo in "${repos[@]}"
do
echo "$repo"
if [[ ! -d "$repo" ]]; then
git clone "git@github.com:emilfolino/$repo.git"
fi
cd "$repo" && git pull && npm audit fix && git commit -a -m "Fixed vulnerabilities" && git push && cd ..
pwd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment