aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:57:06 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-11 06:57:06 +0300
commit88e75a4a55a3a85544663f64984c3cabd7bb1399 (patch)
treed21b62f3a1f7098e1eb355089766eb484def6cc0
parentf5845ffe9bc8a3e51f332ed5e3324a23cbb5b580 (diff)
downloadarching-kaos-radio-88e75a4a55a3a85544663f64984c3cabd7bb1399.tar.gz
arching-kaos-radio-88e75a4a55a3a85544663f64984c3cabd7bb1399.tar.bz2
arching-kaos-radio-88e75a4a55a3a85544663f64984c3cabd7bb1399.zip
Properly initialize
-rwxr-xr-xinit.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.sh b/init.sh
index 9fe1422..8b74d19 100755
--- a/init.sh
+++ b/init.sh
@@ -1,2 +1,9 @@
#!/bin/bash
-mkdir hashes
+if [ ! -d hashes ]
+then
+ mkdir hashes
+fi
+if [ ! -f "hashes/list" ]
+then
+ echo 0 > hashes/list
+fi