Skip to content

Commit a3540d3

Browse files
authored
Merge pull request #137 from petiepooo/patch-1
Silence error on lock attempt
2 parents 2628191 + 0b3cefb commit a3540d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ register_networkd_reloader() {
643643
# If the redirect fails, most likely because the target file
644644
# already exists and -o noclobber is in effect, $? will be set
645645
# nonzero. If it succeeds, it is set to 0
646-
echo $$ > "${lockfile}"
647-
# shellcheck disable=SC2320
646+
2>/dev/null echo $$ > "${lockfile}"
647+
# shellcheck disable=SC2320
648648
registered=$?
649649
[ $registered -eq 0 ] && break
650650
sleep 0.1

0 commit comments

Comments
 (0)