aboutsummaryrefslogtreecommitdiffstats
path: root/add-shell
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-07-25 14:49:21 +0200
committerOlav Vitters <olav@vitters.nl>2020-07-25 14:49:21 +0200
commit99ec3fd689960ccc80cef6c54dc55cf887f2bcc5 (patch)
tree307a79553be64a7079ae54e9976cd9c3f11e8111 /add-shell
parent4fbff76ec099b7308c6afd4894788703af9d12cb (diff)
downloadrpm-helper-99ec3fd689960ccc80cef6c54dc55cf887f2bcc5.tar
rpm-helper-99ec3fd689960ccc80cef6c54dc55cf887f2bcc5.tar.gz
rpm-helper-99ec3fd689960ccc80cef6c54dc55cf887f2bcc5.tar.bz2
rpm-helper-99ec3fd689960ccc80cef6c54dc55cf887f2bcc5.tar.xz
rpm-helper-99ec3fd689960ccc80cef6c54dc55cf887f2bcc5.zip
add-shell: ShellCheck: fix undefined behaviour
Diffstat (limited to 'add-shell')
-rwxr-xr-xadd-shell2
1 files changed, 1 insertions, 1 deletions
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