mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-05 05:24:07 +00:00
added gitignore, shellcheck fix
This commit is contained in:
parent
ea7a5501b3
commit
67a75a52b3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
rebalance_db.txt
|
||||
@ -1,20 +0,0 @@
|
||||
/home/markus/music/Vorsingen 21.02.2020/080101-000.wav
|
||||
1
|
||||
/home/markus/music/Vorsingen 21.02.2020/Der Vogelfänger - Can.mp3
|
||||
1
|
||||
/home/markus/music/Vorsingen 21.02.2020/Bona Nox - Chor.mp3
|
||||
1
|
||||
/home/markus/music/Vorsingen 21.02.2020/Gambenkanon - Chor.mp3
|
||||
1
|
||||
/home/markus/music/Vorsingen 21.02.2020/Großer Herr - Can.mp3
|
||||
1
|
||||
/home/markus/music/Vorsingen 21.02.2020/Arie des Harlekin - Bruno.mp3
|
||||
1
|
||||
/home/markus/music/190904-004.wav
|
||||
1
|
||||
/home/markus/music/190904-002.wav
|
||||
1
|
||||
/home/markus/music/190904-003.wav
|
||||
1
|
||||
/home/markus/music/190904-002_edited.mp3
|
||||
1
|
||||
@ -125,7 +125,7 @@ function rebalance () {
|
||||
# update rebalance "database"
|
||||
touch "./${rebalance_db_file_name}"
|
||||
line_nr=$(grep -n "${file_path}" "./${rebalance_db_file_name}" | head -n 1 | cut -d: -f1)
|
||||
if [ -z ${line_nr} ]; then
|
||||
if [ -z "${line_nr}" ]; then
|
||||
rebalance_count=1
|
||||
echo "${file_path}" >> "./${rebalance_db_file_name}"
|
||||
echo "${rebalance_count}" >> "./${rebalance_db_file_name}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user