From 99ec3fd689960ccc80cef6c54dc55cf887f2bcc5 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Sat, 25 Jul 2020 14:49:21 +0200 Subject: add-shell: ShellCheck: fix undefined behaviour --- add-shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-shell b/add-shell index a7b8fa0..4f4788e 100755 --- a/add-shell +++ b/add-shell @@ -23,7 +23,7 @@ CFG_FILE=/etc/shells # Create $CFG_FILE if needed if [ ! -f $CFG_FILE ]; then - > $CFG_FILE + true > $CFG_FILE fi if ! grep -q "^$shl$" $CFG_FILE; then -- cgit v1.2.1