aboutsummaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-12-18 08:33:02 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-12-18 08:33:02 +0200
commit606e3bd269fdc2cf687db82c43a5346f8081864f (patch)
tree2f88a716af27ebeacc7ef4c33fa467cf236c4477 /init.sh
parent6cbf9b47f966556f92565392e83b410729c8be35 (diff)
downloadarching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.tar.gz
arching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.tar.bz2
arching-kaos-tools-606e3bd269fdc2cf687db82c43a5346f8081864f.zip
Different approach on installing, now symlinks
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh10
1 files changed, 7 insertions, 3 deletions
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