summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-11-16 12:44:21 +0100
committerJonas <dr@jones.dk>2013-11-16 12:44:21 +0100
commitfa9d139949f0d5e73617593af9a3f569e3216fa0 (patch)
tree0a03f0b841eb2da9afc4a95668008d149800fa24
parentdc5ead6a5a3c011d33b30b099960fda71bfc0991 (diff)
Modernize to use $() instead of ``.
-rwxr-xr-xadduser.local6
1 files changed, 3 insertions, 3 deletions
diff --git a/adduser.local b/adduser.local
index eca4084..04b1125 100755
--- a/adduser.local
+++ b/adduser.local
@@ -92,19 +92,19 @@ if [ -z "$profile_aux" ] && [ -n "$VERBOSE" ] && [ "$VERBOSE" -gt 0 ] && [ -x /u
fi
# Mailing lists
-maildomain="`maildomain`"
+maildomain="$(maildomain)"
if [ -z "$profile_aux" ] && [ -n "$VERBOSE" ] && [ "$VERBOSE" -gt 0 ] && [ -n "$maildomain" ]; then
echo -n "Subscribe $NEWUSERNAME@$maildomain to mailinglists (y/N)? "
read subscribe
case $subscribe in
y|Y)
- fullname="`fullname`"
+ fullname="$(fullname)"
if [ -n "$fullname" ]; then
subscriber="$fullname <$NEWUSERNAME@$maildomain>"
else
subscriber="$NEWUSERNAME@$maildomain"
fi
- lists="`listlists "$maildomain"`"
+ lists="$(listlists "$maildomain")"
if [ -z "$lists" ]; then
echo "No mailinglists found."
fi