Skip to content

Instantly share code, notes, and snippets.

@dsiddy
Last active December 8, 2015 20:58
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 dsiddy/2dc1ad53491cbb279468 to your computer and use it in GitHub Desktop.
Save dsiddy/2dc1ad53491cbb279468 to your computer and use it in GitHub Desktop.
update package manager files
#!/bin/bash
for file in {package,bower}.json
do
if [ -f ${file} ]; then
# Warning: this command edits the files in-place.
sed -i '' -e 's|(http://\(.*\))|(https://\1)|' ${file}
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment