Skip to content

Commit

Permalink
Fix CONFIG_FILE assignment in set_config and get_config functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Jan 9, 2024
1 parent a9b14f0 commit 4f38cdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/armbian-configng/set_get_system.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

function set_config() {
CONFIG_FILE="/etc/armbian/configng.sh"
CONFIG_FILE="/etc/armbian/configng.sh" || echo "No CONFIG_FILE"

echo "Creating $CONFIG_FILE with example key pair."

Expand All @@ -14,8 +14,7 @@ function set_config() {
}

function get_config() {
CONFIG_FILE="/etc/armbian/configng.sh"

CONFIG_FILE="/etc/armbian/configng.sh" || echo "No CONFIG_FILE"
if [[ -f "$CONFIG_FILE" ]]; then

echo "System Checks."
Expand Down

0 comments on commit 4f38cdc

Please sign in to comment.