about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSingustromo <singustromo@disroot.org>2023-11-08 00:53:55 +0100
committerSingustromo <singustromo@disroot.org>2023-11-08 00:53:55 +0100
commitfb855b4f4cdeb704fcda16cd75530169272ac6fc (patch)
tree2d5c2cbbc1e8ba81fd7b080ef4d375c3278ed6c9
parentab4276239811e01960b880ef462beb3f5481eb6d (diff)
downloadradio-sh-master.tar.gz
radio-sh-master.zip
Fix: logic for Config:create call HEAD master
-rwxr-xr-xradio7
-rw-r--r--todo.org3
2 files changed, 2 insertions, 8 deletions
diff --git a/radio b/radio
index d15ea1a..a0c58d6 100755
--- a/radio
+++ b/radio
@@ -1002,11 +1002,8 @@ main() {
 
     Sys:depcheck
 
-    if (( _load_options )) && Config:read; then
-        Config:load_options
-    else
-        Config:create
-    fi
+    Config:read || Config:create
+    (( _load_options )) && Config:load_options
 
     Sys:depcheck fw:"$_config_file_location"
 
diff --git a/todo.org b/todo.org
index de28ac1..c9da3ad 100644
--- a/todo.org
+++ b/todo.org
@@ -2,9 +2,6 @@
 * TODO ~ radio script 2.1
 
 - [ ] better code organization
-  - [X] global variables naming convention: _ prefix
-  - [X] different function naming scheme
-    - Parent::fname()
   - generalize some functions
     - e.g. Streamer:get|set
 - [ ] Dependencies: Write down all executables called from environment