aboutsummaryrefslogtreecommitdiff
path: root/doc/functions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions.txt')
-rw-r--r--doc/functions.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/functions.txt b/doc/functions.txt
index 0f8cd60..3a0cd7b 100644
--- 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"
}