Pārlūkot izejas kodu

cmake: Fix bash specific result code to sh

Xenofon Karamanos 4 nedēļas atpakaļ
vecāks
revīzija
44bd165d10
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      cmake/dbschema-version-postprocess.sh

+ 1 - 1
cmake/dbschema-version-postprocess.sh

@@ -24,7 +24,7 @@ for FILE in $(ls * | sort); do
             # Append the last line to the version file
             # Using "printf" to ensure a newline is added after the tail output
             tail -n "$TAIL_NUMBER" "$FILE" >> version
-            if [ ${PIPESTATUS[0]} -ne 0 ]; then # Check tail command result
+            if [ $? -ne 0 ]; then # Check tail command result
                 echo "Warning: tail command failed for $FILE"
             fi