From 4551e4029b7dddffb358d8a61691b1a9f6cbef40 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 21 Oct 2018 00:54:43 +0000 Subject: [PATCH] ensure all paths are absolute in zpm-add --- zpm-add | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zpm-add b/zpm-add index 119b29b..6c2965c 100755 --- a/zpm-add +++ b/zpm-add @@ -151,6 +151,9 @@ for path in $*; do rpath="$prefix/$rpath" fi + # ensure all paths are absolute + rpath=/${rpath#/} + filetype=$(zpm stat -l -f '%t' "$path") hash='NULL' target='NULL' -- 2.40.0