Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Created August 11, 2013 01:19
Show Gist options
  • Save brendanjerwin/6202945 to your computer and use it in GitHub Desktop.
Save brendanjerwin/6202945 to your computer and use it in GitHub Desktop.
#!/bin/bash
# You may redistribute this program and/or modify it under the terms of
# the GNU General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
( ls && ls ./build ) 2>/dev/null | grep 'cjdroute.conf' >/dev/null &&
echo "Oh look, a file called cjdroute.conf! Don't worry, I'll leave that there."
git reset --hard && git clean -dxf -e cjdroute.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment