mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
d2910825a6
use for-loop instead of repeating code for each device
11 lines
334 B
Bash
Executable File
11 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for i in 'rock64' 'raspi3' 'raspi4' 'debian'; do
|
|
mkdir -p out/rootfs_$i/
|
|
rsync -r -u rootfs/standard/* out/rootfs_$i/
|
|
rsync -r -u rootfs/$i/* out/rootfs_$i/
|
|
rsync -r -u CHANGELOG out/rootfs_$i/usr/share/mynode/changelog
|
|
rm -f out/mynode_rootfs_$i.tar.gz
|
|
tar -zcvf out/mynode_rootfs_$i.tar.gz ./out/rootfs_$i/*
|
|
done
|