2
0
Эх сурвалжийг харах

cmake: Fix bash specific result code to sh

Xenofon Karamanos 4 долоо хоног өмнө
parent
commit
44bd165d10

+ 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