about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorlogin <login@tilde.team>2019-11-15 21:40:29 -0500
committerlogin <login@tilde.team>2019-11-15 21:40:29 -0500
commitfe25995df346c75661f2e657dcdd5aee8ea6d4a2 (patch)
treed3b7e1d427474e3111206affb4fb59ad57614a88
parent3dfe89db4a2e19341d178197d5f805972c4d4e68 (diff)
downloadtcoin-fe25995df346c75661f2e657dcdd5aee8ea6d4a2.tar.gz
Fixed symlinking bug in ntcoin regarding compile_(t/p)coin and edit_(t/p)coin
Fixed a bug in ntcoin where the symlinks from tcoin/bin/compile_tcoin and tcoin/bin/edit_tcoin to ~/bin/compile_tcoin and ~/bin/edit_tcoin are made properly. The previous command did something else.
-rwxr-xr-xntcoin6
1 files changed, 4 insertions, 2 deletions
diff --git a/ntcoin b/ntcoin
index 407a75f..02e0143 100755
--- a/ntcoin
+++ b/ntcoin
@@ -197,7 +197,8 @@ else
 '`which nano`' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin"
       /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin"
       /bin/bash "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin"
-      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/tcoin" "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" ~/bin
+      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" ~/"bin/compile_tcoin"
+      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" ~/"bin/edit_tcoin"
     fi
     if [ -e "`/usr/bin/realpath -s $1`/tcoin/bin/pcoin" ]
     then
@@ -217,7 +218,8 @@ else
 '`which nano`' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin"
       /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin"
       /bin/bash "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin"
-      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/pcoin" "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" ~/bin
+      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" ~/"bin/compile_pcoin"
+      /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" ~/"bin/edit_pcoin"
     fi
   fi
 fi