cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit b360ff74beba0704494d608aa03e1a3d6a7f17c4
parent 0e39945377431513dcb8d565a2fa6d4f9ebd4b6c
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 27 May 2020 20:09:18 +0300

kiss-link: remove the file if it is a directory

Diffstat:
Mcontrib/kiss-link | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/contrib/kiss-link b/contrib/kiss-link @@ -12,6 +12,7 @@ oPKG="$(kiss s "$PKG" | grep -v "^$PWD\$\|/var/db/kiss/installed/$PKG" | sed 1q) for file in "$@" ; do [ -e "${oPKG:?}/$file" ] + [ -d "$file" ] && rm -rf "$file" ln -sf "$oPKG/$file" "$file" printf 'linked %s to %s\n' "$oPKG/$file" "$PWD/$file" done