about summary refs log tree commit diff stats
path: root/ntcoin_openbsd_tildeinstitute
diff options
context:
space:
mode:
authorlogin (tilde.institute) <login@tilde.institute>2020-07-12 03:01:05 -0400
committerlogin (tilde.institute) <login@tilde.institute>2020-07-12 03:01:05 -0400
commitb73e169b72daff3f1edf991cd6e0613f44d6f3c4 (patch)
treed8e9766494233780b4bc46af654912c3b18c6963 /ntcoin_openbsd_tildeinstitute
parentc3cf1ffea6d49096936d7e910bde4c95536de323 (diff)
downloadtcoin-b73e169b72daff3f1edf991cd6e0613f44d6f3c4.tar.gz
Fixed bug in ntcoin_openbsd_tildeinstitute
Thanks to gbmor, I was able to replace base64 (fourmilab version) (which outputs \r\n and thus interferes with tr -d '\n') with gbase64 (the GNU coreutils version) which only outputs '\n'.
Diffstat (limited to 'ntcoin_openbsd_tildeinstitute')
-rwxr-xr-xntcoin_openbsd_tildeinstitute2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntcoin_openbsd_tildeinstitute b/ntcoin_openbsd_tildeinstitute
index da3be40..129e3b8 100755
--- a/ntcoin_openbsd_tildeinstitute
+++ b/ntcoin_openbsd_tildeinstitute
@@ -116,7 +116,7 @@ else
       /bin/echo "Sorry, '`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez' already exists."
       exit 1
     else
-      /bin/echo "`cat /dev/urandom | base64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | base64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
+      /bin/echo "`cat /dev/urandom | gbase64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'` `cat /dev/urandom | gbase64 | ghead -c 512 | tr -d '\n' | tr '+' '-' | tr '/' '_'`" > "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
       /bin/chmod 400 "`/usr/local/bin/grealpath -s $1`/tcoin/secrets/tcoin_codez"
     fi
   fi