From 606e3bd269fdc2cf687db82c43a5346f8081864f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 18 Dec 2021 08:33:02 +0200 Subject: Different approach on installing, now symlinks --- init.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'init.sh') diff --git a/init.sh b/init.sh index 97f04b2..1f1fa78 100755 --- a/init.sh +++ b/init.sh @@ -36,6 +36,10 @@ fi # TODO The thing is done, we are sitting on a genesis. # We also have an IPNS name to use. -if [[ ! -f $BINDIR/json2bash ]] ; then cp json2bash $BINDIR ;fi -if [[ ! -f $BINDIR/ipfs-starter ]] ; then cp ipfs-starter $BINDIR ;fi -if [[ ! -f $BINDIR/pack_z_block ]] ; then cp pack_z_block $BINDIR ;fi +# Find scripts and create symlinks + +binfiles=$(ls -1 $(pwd)/bin) +for b in $binfiles +do + if [[ ! -L $BINDIR/$b ]] ; then ln -s $(pwd)/bin/$b $BINDIR/$b ;fi +done -- cgit v1.2.3