forked from kiss-community/kiss
kiss: Fix update bug
This commit is contained in:
parent
5dd75d60c1
commit
55c2de2af8
12
kiss
12
kiss
@ -1016,9 +1016,15 @@ pkg_updates() {
|
|||||||
cd "$repo"
|
cd "$repo"
|
||||||
cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||:
|
cd "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null ||:
|
||||||
|
|
||||||
[ -d .git ] || [ "$(git remote 2>/dev/null)" ] || {
|
[ -d .git ] || {
|
||||||
log "$repo" " "
|
log "$repo" " "
|
||||||
printf '%s\n' "Not a git repository or no remote, skipping."
|
printf '%s\n' "Not a git repository, skipping."
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
[ "$(git remote 2>/dev/null)" ] || {
|
||||||
|
log "$repo" " "
|
||||||
|
printf '%s\n' "No remote, skipping."
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1237,7 +1243,7 @@ args() {
|
|||||||
l|list) pkg_list "$@" ;;
|
l|list) pkg_list "$@" ;;
|
||||||
u|update) pkg_updates ;;
|
u|update) pkg_updates ;;
|
||||||
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
s|search) for pkg do pkg_find "$pkg" all; done ;;
|
||||||
v|version) log kiss 1.10.0 ;;
|
v|version) log kiss 1.10.1 ;;
|
||||||
|
|
||||||
h|help|-h|--help|'')
|
h|help|-h|--help|'')
|
||||||
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
||||||
|
Loading…
Reference in New Issue
Block a user