mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 14:23:08 +00:00
fix: ensure_file_exists returns 0 when file exists
This commit is contained in:
@@ -192,7 +192,9 @@ require_file() {
|
||||
# Usage: ensure_file_exists "/path/to/file"
|
||||
ensure_file_exists() {
|
||||
local file="$1"
|
||||
[[ ! -f "$file" ]] && touch "$file"
|
||||
if [[ ! -f "$file" ]]; then
|
||||
touch "$file"
|
||||
fi
|
||||
}
|
||||
|
||||
#=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user