Skip to content

Commit 4764f46

Browse files
committed
fix shell lint
1 parent ea4cf3b commit 4764f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cni-plugin/deployment/scripts/install-cni.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ sync() {
239239

240240
local config_file_count
241241
local new_sha
242-
if [ "$ev" = 'CREATE' -o "$ev" = 'MOVED_TO' -o "$ev" = 'MODIFY' ]; then
242+
if [ "$ev" = 'CREATE' ] || [ "$ev" = 'MOVED_TO' ] || [ "$ev" = 'MODIFY' ]; then
243243
# When the event type is 'CREATE', 'MOVED_TO' or 'MODIFY', we check the
244244
# previously observed SHA (updated with each file watch) and compare it
245245
# against the new file's SHA. If they differ, it means something has

0 commit comments

Comments
 (0)