From 5be57440ff3bd5f7157022aec5d036c409857010 Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Tue, 18 Jan 2022 22:16:45 +0100 Subject: [PATCH] tweak --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 10e3bbe..372f796 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -29,7 +29,8 @@ genPassowrd () { sanitizeFile () { tmp="$(mktemp)" sed -e "s/\r//g" "$1" > "$tmp" - mv "$tmp" "$1" + cat "$tmp" > "$1" + rm "$tmp" } if [ ! -e "$PASSWD_LIST" ] ; then