diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-18 08:33:02 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-18 08:33:02 +0200 |
commit | 606e3bd269fdc2cf687db82c43a5346f8081864f (patch) | |
tree | 2f88a716af27ebeacc7ef4c33fa467cf236c4477 /init.sh | |
parent | 6cbf9b47f966556f92565392e83b410729c8be35 (diff) | |
download | arching-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-x | init.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |