summaryrefslogtreecommitdiffstats
path: root/remote/includes/useradd.inc
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-27 00:10:16 +0200
committerSimon Rettberg2014-07-27 00:10:16 +0200
commit62d78729a32dd136feddede21a5dc6e9c3dbe2d7 (patch)
treedccd7c833bb33825c45922397dd84d629d25f05f /remote/includes/useradd.inc
parent[rfs-s31] fix busybox copying v2 (diff)
downloadtm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.gz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.tar.xz
tm-scripts-62d78729a32dd136feddede21a5dc6e9c3dbe2d7.zip
helpers/includes now should include an __init function and not just do stuff right away when being sourced
Diffstat (limited to 'remote/includes/useradd.inc')
-rw-r--r--remote/includes/useradd.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/remote/includes/useradd.inc b/remote/includes/useradd.inc
index a8f407f7..2beaaeae 100644
--- a/remote/includes/useradd.inc
+++ b/remote/includes/useradd.inc
@@ -14,9 +14,7 @@
# IDs will be generated in the range of 5-999 if not explicitly given
# TODO: Make it possible to pass a range of IDs if you don't want one <1000 but don't care about the exact ID
-. "${ROOT_DIR}/helper/string.inc"
-
-declare -r NAME_REGEX='^[a-z][-a-z0-9]*$'
+declare -rg NAME_REGEX='^[a-z][-a-z0-9]*$'
# Generate a UID for a given USERNAME. Return existing UID if possible, generate new one otherwise
generate_uid()