diff options
author | tv <tv@also> | 2011-08-06 02:37:54 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-08-06 02:37:54 +0200 |
commit | 79a8357195f52b34de6cf6a1930cf263bca7d95c (patch) | |
tree | 0fbf9c7ebcbefdf2f9b340164cb7ccadf1536764 /Refactory/bin | |
parent | 78af5630b579a78bf9689cd315e24dc4b8374601 (diff) |
git-eternal-move: check $#
Diffstat (limited to 'Refactory/bin')
-rwxr-xr-x | Refactory/bin/git-eternal-move | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index 075748fd..bcf79501 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -3,9 +3,12 @@ # git-eternal-move FROM TO # set -euf -git filter-branch --tree-filter " +if test $# -ne 2; then + echo 'Error 1: You are made of stupid!' >&2 + exit 23 +fi +exec git filter-branch --tree-filter " set -euf if test -e '$1'; then - mkdir -p '`dirname "$2"`' mv '$1' '$2' fi" |