forked from RainbowEngineer/taiwan_love_wins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RainbowEngineer#10 from billy3321/master
Please add my sign!!
- Loading branch information
Showing
4 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# uncomment this for debug | ||
# set -o xtrace | ||
|
||
# This is a file use to sign. Please input file as parameter. | ||
# Usage: ./sign.sh signed_by_${USERNAME}.txt | ||
|
||
pushd $(dirname $0) | ||
REPO=$(cat .git/config | grep "[email protected]" | cut -f 2 -d ':' | sed s/\.git//) | ||
|
||
git pull | ||
git remote add upstream https://github.com/RainbowEngineer/taiwan_love_wins.git | ||
git fetch upstream | ||
git merge upstream/master | ||
git push | ||
git add $1 | ||
git commit | ||
git push | ||
REPO=$(cat .git/config | grep "[email protected]" | cut -f 2 -d ':' | sed s/\.git//) | ||
|
||
if [ -f $(which hub) ]; then | ||
echo '自動送 pull-request...' | ||
hub pull-request -m "Please add my sign!!" -b RainbowEngineer/taiwan_love_wins:master | ||
else | ||
|
||
echo '系統沒有安裝hub,請前往以下網址送出pull request:' | ||
echo "https://github.com/${REPO}/pull/new/master" | ||
fi | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.