|
|
@ -77,15 +77,17 @@ else
|
|
|
|
git push -f origin
|
|
|
|
git push -f origin
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
TOOL=$(which gnome-open xdg-open open | awk '{ print $1 }')
|
|
|
|
which xdg-open >/dev/null && TOOL=xdg-open
|
|
|
|
|
|
|
|
which gnome-open >/dev/null && TOOL=gnome-open
|
|
|
|
|
|
|
|
which open >/dev/null && TOOL=open
|
|
|
|
URL="https://github.com/$ORG/$REPO/compare/$TARG...$FORK:$BRANCH?expand=1"
|
|
|
|
URL="https://github.com/$ORG/$REPO/compare/$TARG...$FORK:$BRANCH?expand=1"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$TOOL" ]; then
|
|
|
|
if [ -z "$OPEN" ]; then
|
|
|
|
echo "Can't find a tool to open the URL:"
|
|
|
|
echo "Can't find a tool to open the URL:"
|
|
|
|
echo $URL
|
|
|
|
echo $URL
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Opening a New PR Form..."
|
|
|
|
echo "Opening a New PR Form..."
|
|
|
|
"$TOOL" "$URL"
|
|
|
|
"$OPEN" "$URL"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -116,14 +118,16 @@ git checkout gh-pages || { echo "Something went wrong!"; exit 1; }
|
|
|
|
rsync -av ${TMPFOLDER}/ ./
|
|
|
|
rsync -av ${TMPFOLDER}/ ./
|
|
|
|
|
|
|
|
|
|
|
|
opensite() {
|
|
|
|
opensite() {
|
|
|
|
TOOL=$(which gnome-open xdg-open open | awk '{ print $1 }')
|
|
|
|
which xdg-open >/dev/null && TOOL=xdg-open
|
|
|
|
|
|
|
|
which gnome-open >/dev/null && TOOL=gnome-open
|
|
|
|
|
|
|
|
which open >/dev/null && TOOL=open
|
|
|
|
URL="http://marlinfw.org/"
|
|
|
|
URL="http://marlinfw.org/"
|
|
|
|
if [ -z "$TOOL" ]; then
|
|
|
|
if [ -z "$OPEN" ]; then
|
|
|
|
echo "Can't find a tool to open the URL:"
|
|
|
|
echo "Can't find a tool to open the URL:"
|
|
|
|
echo $URL
|
|
|
|
echo $URL
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Opening the site in the browser..."
|
|
|
|
echo "Opening the site in the browser..."
|
|
|
|
"$TOOL" "$URL"
|
|
|
|
"$OPEN" "$URL"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|