aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-lib.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r--src/cpt-lib.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index e7dfe4c..6b95ee7 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -81,6 +81,14 @@ _seq() (
printf '%s' "$buf"
)
+_multiply_char() (
+ buf=
+ for i in $(_seq "$2"); do
+ buf="$buf$1"
+ done
+ out "$buf"
+)
+
_stat() (
_user=; eval set -- "$(ls -ld "$1")"
id -u "${_user:=$3}" >/dev/null 2>&1 || _user=root