Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (18 sloc) 533 Bytes
#!/bin/bash
PWD=`pwd`
TREE=`basename ${PWD}`
#git fp tty-next && ../added-to-tty-next 0*.patch && git checkout tty-next && git merge work && git push && git checkout work
git fp ${TREE}-next && \
../added-to-${TREE}-next 0*.patch && \
git checkout ${TREE}-next && \
git merge work
# if something goes wrong, exit
if [ $? -ne 0 ] ; then
exit
fi
# Only push if we have a network connection
NM_STATUS=`nmcli -terse -f state nm`
if [ "$NM_STATUS" = "connected" ] ; then
git push kroah.com && git push
fi
git checkout work