Skip to content

Commit

Permalink
Merge pull request #1 from thin-edge/fix-busy-box-compat
Browse files Browse the repository at this point in the history
fix: improve compatibility with busybox
  • Loading branch information
reubenmiller committed May 22, 2024
2 parents 5f64839 + d0c986c commit 5ff3191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c8y-command
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SHELL_BIN=
# Load settings file
SETTINGS_FILE=/etc/c8y-command-plugin/env
if [ -f "$SETTINGS_FILE" ]; then
FOUND_FILE=$(find "$SETTINGS_FILE" -perm 644 | head -1)
FOUND_FILE=$(find "$SETTINGS_FILE" -perm 644 | head -n1)

if [ -n "$FOUND_FILE" ]; then
info "Loading settings: $FOUND_FILE"
Expand Down

0 comments on commit 5ff3191

Please sign in to comment.