Skip to content

Commit b278aad

Browse files
Update MerlinAU.sh
Fine-tuning code.
1 parent 6d9fe46 commit b278aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MerlinAU.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Original Creation Date: 2023-Oct-01 by @ExtremeFiretop.
66
# Official Co-Author: @Martinski W. - Date: 2023-Nov-01
7-
# Last Modified: 2025-Jan-25
7+
# Last Modified: 2025-Jan-26
88
###################################################################
99
set -u
1010

@@ -357,7 +357,7 @@ _ReleaseLock_()
357357
else lockType="$1"
358358
fi
359359
if [ -s "$LockFilePath" ] && \
360-
[ "$(cat "$LockFilePath" | wc -l)" -gt 1 ]
360+
[ "$(wc -l < "$LockFilePath")" -gt 1 ]
361361
then
362362
if [ -z "$lockType" ]
363363
then sed -i "/^$$|/d" "$LockFilePath"

0 commit comments

Comments
 (0)