Merge branch 'master' of github.com:HariSekhon/DevOps-Bash-tools

pull/2/head
Hari Sekhon 4 years ago
commit 8587b960a6

@ -98,15 +98,15 @@
</dict>
<dict>
<key>projectName</key>
<string>HariSekhon/DevOps-Perl-tools</string>
<string>HariSekhon/DevOps-Bash-tools</string>
<key>serverUrl</key>
<string>https://api.travis-ci.org/repos/HariSekhon/DevOps-Perl-tools/cc.xml?branch=master</string>
<string>https://api.travis-ci.org/repositories/HariSekhon/DevOps-Bash-tools/cc.xml?branch=master</string>
</dict>
<dict>
<key>projectName</key>
<string>HariSekhon/DevOps-Bash-tools</string>
<string>HariSekhon/DevOps-Perl-tools</string>
<key>serverUrl</key>
<string>https://api.travis-ci.org/repositories/HariSekhon/DevOps-Bash-tools/cc.xml?branch=master</string>
<string>https://api.travis-ci.org/repos/HariSekhon/DevOps-Perl-tools/cc.xml?branch=master</string>
</dict>
<dict>
<key>projectName</key>
@ -114,6 +114,12 @@
<key>serverUrl</key>
<string>https://api.travis-ci.org/repos/HariSekhon/DevOps-Python-tools/cc.xml?branch=master</string>
</dict>
<dict>
<key>projectName</key>
<string>HariSekhon/DevOps-Golang-tools</string>
<key>serverUrl</key>
<string>https://api.travis-ci.org/repos/HariSekhon/DevOps-Golang-tools/cc.xml?branch=master</string>
</dict>
</array>
<key>SendNotification Broken</key>
<true/>

@ -67,8 +67,8 @@ awkward URLs more nicely replaced with shields.io
[![CircleCI](https://circleci.com/gh/HariSekhon/DevOps-Bash-tools.svg?style=svg)](https://circleci.com/gh/HariSekhon/DevOps-Bash-tools)
[![Codeship Status for HariSekhon/DevOps-Bash-tools](https://app.codeship.com/projects/1b13b490-38c2-0138-ed09-4a04e28a9ab8/status?branch=master)](https://app.codeship.com/projects/386508)
[![Shippable](https://img.shields.io/shippable/5e52c634d79b7d00077bf5ed/master?label=Shippable&logo=jfrog)](https://app.shippable.com/github/HariSekhon/DevOps-Bash-tools/dashboard/jobs)
[![Codefresh](https://g.codefresh.io/api/badges/pipeline/harisekhon/GitHub%2FDevOps-Bash-tools?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWU1MmM5OGNiM2FiOWUzM2Y3ZDZmYjM3.O69674cW7vYom3v5JOGKXDbYgCVIJU9EWhXUMHl3zwA&type=cf-1)](https://g.codefresh.io/pipelines/edit/new/builds?id=5e53eaeea284e010982eaa6e&pipeline=DevOps-Bash-tools&projects=GitHub&projectId=5e52ca8ea284e00f882ea992&context=github&filter=page:1;pageSize:10;timeFrameStart:week)
[![BuildKite](https://img.shields.io/buildkite/f11bdd9690a9bac9a8edc6094dc2f2b9af3218a7a15d4ec17d/master?label=BuildKite&logo=buildkite)](https://buildkite.com/hari-sekhon/devops-bash-tools)
[![Codefresh](https://g.codefresh.io/api/badges/pipeline/harisekhon/GitHub%2FDevOps-Bash-tools?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWU1MmM5OGNiM2FiOWUzM2Y3ZDZmYjM3.O69674cW7vYom3v5JOGKXDbYgCVIJU9EWhXUMHl3zwA&type=cf-1)](https://g.codefresh.io/pipelines/edit/new/builds?id=5e53eaeea284e010982eaa6e&pipeline=DevOps-Bash-tools&projects=GitHub&projectId=5e52ca8ea284e00f882ea992&context=github&filter=page:1;pageSize:10;timeFrameStart:week)
[![Buddy](https://app.buddy.works/harisekhon/devops-bash-tools/pipelines/pipeline/248539/badge.svg?token=7f63afa3c423a65e6e39a79be0386959e98c4105ea1e20f7f8b05d6d6b587038 "buddy pipeline")](https://app.buddy.works/harisekhon/devops-bash-tools/pipelines/pipeline/248539)
[![Cirrus CI](https://img.shields.io/cirrus/github/HariSekhon/DevOps-Bash-tools/master?logo=Cirrus%20CI&label=Cirrus%20CI)](https://cirrus-ci.com/github/HariSekhon/DevOps-Bash-tools)
[![Semaphore](https://harisekhon.semaphoreci.com/badges/DevOps-Bash-tools.svg)](https://harisekhon.semaphoreci.com/projects/DevOps-Bash-tools)

@ -52,12 +52,6 @@ no_more_opts "$@"
min_args 1 "$@"
name="${1:-}"
if [ -z "$name" ]; then
usage
fi
add_origin_url(){
local name="$1"
local domain="unconfigured"
@ -91,22 +85,24 @@ add_origin_url(){
git remote set-url --add origin "$url"
}
if [ "$name" = "github" ] ||
[ "$name" = "gitlab" ] ||
[ "$name" = "bitbucket" ] ||
[ "$name" = "azure" ]; then
add_origin_url "$name"
echo >&2
# TMI
#git remote show origin
git remote -v | grep '^origin' | sed 's|://.*@|://|'
elif [ "$name" = "all" ]; then
for name in github gitlab bitbucket azure; do
for name in "$@"; do
if [ "$name" = "github" ] ||
[ "$name" = "gitlab" ] ||
[ "$name" = "bitbucket" ] ||
[ "$name" = "azure" ]; then
add_origin_url "$name"
done
echo >&2
#git remote show origin
git remote -v | grep '^origin' | sed 's|://.*@|://|'
else
usage
fi
echo >&2
# TMI
#git remote show origin
git remote -v | grep '^origin' | sed 's|://.*@|://|'
elif [ "$name" = "all" ]; then
for name in github gitlab bitbucket azure; do
add_origin_url "$name"
done
echo >&2
#git remote show origin
git remote -v | grep '^origin' | sed 's|://.*@|://|'
else
usage
fi
done

@ -24,6 +24,7 @@ plist_file="net.sourceforge.cruisecontrol.CCMenu.plist"
cd "$srcdir/.."
cp -vf ~/"$plist_dir/$plist_file" "$PWD/$plist_dir/$plist_file"
plutil -convert xml1 "$PWD/$plist_dir/$plist_file"
echo
echo "git diff $PWD/$plist_dir/$plist_file"

Loading…
Cancel
Save