#!/usr/bin/env python3 # I know I have the extension of a bash file but secretly I am a python file # Yes I know it will fuck up your linter # Sadly we have to do it this way because once up on a time this actually was a bash file and we don't want to remake hundreds of symlinks import sys import os (old, new, branch) = sys.stdin.read().split() print("Old: '%s'" % old) print("New: '%s'" % new) print("Branch: '%s'" % branch) print("Push to '%s' successful!" % os.getcwd().split(os.sep)[-2]) #!/bin/sh #p=$(pwd) #echo "Push '${p#/*/*/}' successful!"