aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-04-25 06:07:47 +0000
committermerakor <cem@ckyln.com>2021-04-25 06:07:47 +0000
commite432b31ef398ef7a73cbe002c536dba7dec62b84 (patch)
treedb5b883e16ad423d6030b35c417db3ab44a0a159
parent5c7f7d4c41d78c3a7ba986e65a697410ca0b219f (diff)
downloadcpt-e432b31ef398ef7a73cbe002c536dba7dec62b84.tar.gz
pkg_repository_info: make stricter grep call for fossil
FossilOrigin-Name: 1139782a2f958ea86a02eb3b252c8fc8fe75786510ef73e65d9e03eb5d4a2f44
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 2da51bb..64f2869 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1656,7 +1656,7 @@ pkg_repository_info() {
# Mercurial repository
backend=hg
- elif rootdir=$(fossil info 2>/dev/null | grep local-root:); then
+ elif rootdir=$(fossil info 2>/dev/null | grep ^local-root:); then
# Fossil repository
backend=fossil