1 2 3 4 5 6 7
pre_upgrade() { if [ -e /usr/bin/jellytool ]; then echo 'Backing up the previous jellytool version...' cp -v /usr/bin/jellytool{,.old} fi }