aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpt-lib3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index 38e57c1..27f252b 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -390,8 +390,7 @@ sh256() {
pkg_isbuilt() (
# Check if a package is built or not.
- repo_dir=$(pkg_find "$1")
- read -r ver rel < "$repo_dir/version"
+ read -r ver rel < "$(pkg_find "$1")/version"
set +f
for tarball in "$bin_dir/$1#$ver-$rel.tar."*; do