Skip to content

Commit

Permalink
check_integrity.sh: improve readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed May 25, 2019
1 parent 26447e5 commit 4b09e94
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions check_integrity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ check_bash_script() {
local cmd="git-$1"

test -f "bin/$cmd" \
|| err "Bin/$cmd does not exist"
|| err "bin/$cmd does not exist"

test -x "bin/$cmd" \
|| err "Run 'chmod +x bin/$cmd' to make it executable"
Expand All @@ -21,7 +21,7 @@ check_bash_script() {

check_documentation() {
local cmd="git-$1"
test -f "man/$cmd.md" || err "create man/$cmd.md"
test -f "man/$cmd.md" || err "man/$cmd.md is required for bin/$cmd"

if [ ! -f "man/$cmd.1" ] || [ ! -f "man/$cmd.html" ]
then
Expand Down Expand Up @@ -64,8 +64,7 @@ test $# == 0 && usage

for name in "$@"; do
name=${name#git-}
[[ "$name" == "rscp" || "$name" == "line-summary" ]] && echo "Skip command $name" \
&& continue
[[ "$name" == "rscp" || "$name" == "line-summary" ]] && continue
check "$name"
done

Expand Down

0 comments on commit 4b09e94

Please sign in to comment.