From 2105a54147c62d9f3e505ebe72c60ed6562fa7b2 Mon Sep 17 00:00:00 2001 From: jusito <17811819+jusito@users.noreply.github.com> Date: Sat, 29 Jun 2024 15:48:55 +0200 Subject: [PATCH] fix(gmod): check cfg not my local test file --- gmod/initConfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmod/initConfig.sh b/gmod/initConfig.sh index 4f06f32..fc8bcfa 100644 --- a/gmod/initConfig.sh +++ b/gmod/initConfig.sh @@ -20,7 +20,7 @@ function configReplace() { sed -E -i "/^\s${source}\s.*/d" "${CFG_PATH}" - local file_ends_on_newline=$([ "$(tail -c1 f | wc -l)" -eq 1 ] && echo true || echo false) + local file_ends_on_newline=$([ "$(tail -c1 "${CFG_PATH}" | wc -l)" -eq 1 ] && echo true || echo false) if ! $file_ends_on_newline; then echo "" >> "${CFG_PATH}" fi