Commits

Jason Ryan  committed 45bf052

Testing successful exit status

  • Participants
  • Parent commits 623a01b

Comments (0)

Files changed (1)

File Scripts/new_kernel

 printf '%s\n' "${cyn}Updating checksums…${end}"
 /usr/bin/updpkgsums
 
-if [[ $? -eq 0 ]]; then
+if (( $? != 0 )); then
+	printf '%s\n' "${red}Checksum failed${end}"
+	exit 1
+else
 	printf '%s\n' "${cyn}Starting build…${end}"
 	/usr/bin/time /usr/bin/makepkg -i
-else
-	printf '%s\n' "${red}Checksum failed${end}"
-	exit 1
 fi
 cd