kiss: remove case statement
This commit is contained in:
parent
7d50b6ec9d
commit
9456b9902c
13
kiss
13
kiss
|
@ -1353,17 +1353,18 @@ pkg_updates() {
|
||||||
printf 'Skipping repository, not a directory\n'
|
printf 'Skipping repository, not a directory\n'
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
cd "$repo"
|
cd "$repo"
|
||||||
|
|
||||||
case $(git remote 2>/dev/null) in
|
git remote >/dev/null 2>&1 || {
|
||||||
"")
|
|
||||||
log "$repo" " "
|
log "$repo" " "
|
||||||
printf 'Skipping git pull, not a repository\n'
|
printf 'Skipping git pull, not a repository\n'
|
||||||
;;
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
*)
|
|
||||||
# Go to the repository's root directory.
|
# Go to the repository's root directory.
|
||||||
cd "$(git rev-parse --show-toplevel)"
|
git_root=$(git rev-parse --show-toplevel)
|
||||||
|
cd "${git_root:?"failed to find git root for '$PWD'"}"
|
||||||
|
|
||||||
# Go to the real root directory if this is a submodule.
|
# Go to the real root directory if this is a submodule.
|
||||||
git_root=$(git rev-parse --show-superproject-working-tree)
|
git_root=$(git rev-parse --show-superproject-working-tree)
|
||||||
|
@ -1401,8 +1402,6 @@ pkg_updates() {
|
||||||
as_root git submodule update --remote --init -f
|
as_root git submodule update --remote --init -f
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
done
|
||||||
|
|
||||||
log "Checking for new package versions"
|
log "Checking for new package versions"
|
||||||
|
|
Loading…
Reference in New Issue