We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d9fe46 commit b278aadCopy full SHA for b278aad
MerlinAU.sh
@@ -4,7 +4,7 @@
4
#
5
# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
6
# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7
-# Last Modified: 2025-Jan-25
+# Last Modified: 2025-Jan-26
8
###################################################################
9
set -u
10
@@ -357,7 +357,7 @@ _ReleaseLock_()
357
else lockType="$1"
358
fi
359
if [ -s "$LockFilePath" ] && \
360
- [ "$(cat "$LockFilePath" | wc -l)" -gt 1 ]
+ [ "$(wc -l < "$LockFilePath")" -gt 1 ]
361
then
362
if [ -z "$lockType" ]
363
then sed -i "/^$$|/d" "$LockFilePath"
0 commit comments