pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit 56072459cb7c655fa9e6a89ba1a0708dad96ff07
parent f109c48355cc1bd80e850c21aaa077ac7938be32
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Wed, 30 Apr 2025 00:46:29 +0000

Don't use - argument seperator for cp

Diffstat:
Mcommand/pthbs-copy-to-logdir | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/command/pthbs-copy-to-logdir b/command/pthbs-copy-to-logdir @@ -11,6 +11,11 @@ if ! test -d "$dstdir"; then fi for srcfile in "$@"; do + case "$srcfile" in + (/*) ;; + (./*) ;; + (*) srcfile="./$srcfile" ;; + esac dstfile=$(s6-uniquename "$dstdir/$(basename "$srcfile")") - cp -v - "$srcfile" "$dstfile" || exit $? + cp -v "$srcfile" "$dstfile" || exit $? done