if [[ $- == *i* ]]; then # anything here will be executed, changing to a directory # note anything to stdout here may make rsync and other network commands fail #cd /opt fi