diff options
Diffstat (limited to 't/chainlint/function.expect')
| -rw-r--r-- | t/chainlint/function.expect | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/t/chainlint/function.expect b/t/chainlint/function.expect index a14388e6b9..9e46a3554a 100644 --- a/t/chainlint/function.expect +++ b/t/chainlint/function.expect @@ -1,11 +1,11 @@ -sha1_file ( ) { - echo "$*" | sed "s#..#.git/objects/&/#" -} && - -remove_object ( ) { - file=$(sha1_file "$*") && - test -e "$file" ?!AMP?! - rm -f "$file" -} ?!AMP?! - -sha1_file arg && remove_object arg +2 sha1_file() { +3 echo "$*" | sed "s#..#.git/objects/&/#" +4 } && +5 +6 remove_object() { +7 file=$(sha1_file "$*") && +8 test -e "$file" ?!LINT: missing '&&'?! +9 rm -f "$file" +10 } ?!LINT: missing '&&'?! +11 +12 sha1_file arg && remove_object arg |
