Adding a Config File

1. Ability to configure variables from a JSON file.
2. By default, checkin.sh does not know the value of checkin_file, this commit fixes that.
3. I want to create a web interface, front end, for this project and it is easier for the PHP server to parse the json data.
This commit is contained in:
MugoSquero
2023-10-17 21:19:03 +03:00
parent 6ecea78954
commit ae0d8943fe
4 changed files with 68 additions and 39 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
# Save the current timestamp to your checkin file
date +%s > ./checkin_file.txt
date +%s > "$(jq -r .checkin_file config.json)"
echo "Checked in"