cpt

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

commit dce696cca1f4f26aada04e9c2bbf521838dbf035
parent 9ca10b0afd6f341fcef10e3182edc6f63ac280df
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed,  3 Jun 2020 18:37:59 +0300

doc: change kinstall

Diffstat:
Mdoc/functions.txt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/functions.txt b/doc/functions.txt @@ -79,12 +79,12 @@ single file where it will be named as the argument. kinstall() { - # usage: kinstall 755 /usr/bin/file filename - ! [ -d "$2" ] || { + # usage: kinstall 755 filename /usr/bin/file + ! [ -d "$3" ] || { printf '%s\n' "Error: $target is a directory" >&2 return 1 } - mkdir -p "${2%/*}"; cp "$3" "$2" - chmod "$1" "$2" + mkdir -p "${3%/*}"; cp "$2" "$3" + chmod "$1" "$3" }