#!/bin/sh set -e ( cd ../.. # Remove temporary files rm -fR v* src alias # Restore if [ -d bak ] then mv bak/* . || sleep 0s rmdir bak fi )