cpt

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

commit 62331a6b751fcbffea28d21b51ea9967c1b8e1d1
parent 8c131f85c4261dc83728adac7f90eebfad25aa35
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 14 Apr 2020 22:03:55 +0300

kiss: use the upper directory for KISS_PATH if no argument is specified

Diffstat:
Mkiss | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -1263,7 +1263,13 @@ args() { case $action in b|build|c|checksum|i|install|r|remove) - [ "$1" ] || set -- "${PWD##*/}" ; esac + [ "$1" ] || { + # We are exporting the KISS_PATH, so if another + # instance of 'kiss' is spawned from the current + # one, they continue to use the same KISS_PATH + export KISS_PATH="${PWD%/*}" + set -- "${PWD##*/}" + } ; esac # Actions can be abbreviated to their first letter. This saves # keystrokes once you memorize the commands.