Skip to content

Instantly share code, notes, and snippets.

@Viroide
Last active October 10, 2017 10:04

Revisions

  1. Viroide revised this gist Oct 10, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions pre-commit
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    #!/bin/sh
    if [[ $(ag '\.only|debugger') ]]; then
    echo 'Ups, you should delete your shit!'
    echo 'Ups, you should remove your 💩 !'
    ag '\.only|debugger'
    exit 1
    else
    echo 'no shit, continue'
    echo 'no 💩 , here is your 🎖'
    exit 0
    fi
  2. Viroide created this gist Oct 10, 2017.
    9 changes: 9 additions & 0 deletions pre-commit
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/sh
    if [[ $(ag '\.only|debugger') ]]; then
    echo 'Ups, you should delete your shit!'
    ag '\.only|debugger'
    exit 1
    else
    echo 'no shit, continue'
    exit 0
    fi