aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-06-19 11:34:22 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2020-06-19 11:34:22 -0700
commit6c8715d992336805d018e1b0b53b434f0ae64e57 (patch)
treee3148e9a0617b9834e5509f7591e89e5fe241631
parentconfig: exclude unneeded parts (diff)
downloadwww-6c8715d992336805d018e1b0b53b434f0ae64e57.tar.gz
www-6c8715d992336805d018e1b0b53b434f0ae64e57.tar.bz2
www-6c8715d992336805d018e1b0b53b434f0ae64e57.zip
bin/update-userinfo.sh: fix stub userinfo.json
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xbin/update-userinfo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update-userinfo.sh b/bin/update-userinfo.sh
index 1acf8c2..6da0f5d 100755
--- a/bin/update-userinfo.sh
+++ b/bin/update-userinfo.sh
@@ -9,12 +9,12 @@ if [[ $(hostname -f) == *'gentoo.org'* ]] || [[ "$FORCE" == '1' ]]; then
else
echo 'skipped (not a gentoo.org box, assuming no LDAP available, set FORCE=1 to override).'
if [[ ! -e "${DESTFILE}" ]]; then
- cat >"${DESTFILE}" <<-EOF
+ echo '
{
"current": {},
"retired": {},
"system": {}
}
- EOF
+ ' | tr '\t' ' ' >"${DESTFILE}"
fi
fi