File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,40 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
2020 -quit \
2121 -createManualActivationFile
2222
23+ # Catch exit code
24+ UNITY_EXIT_CODE=$?
25+
2326# Output the resulting file by copying
2427cp $FILE_NAME $HOME /$FILE_PATH
2528
2629# Set resulting name as output variable
2730echo ::set-output name=filePath::$FILE_PATH
2831
29- # Explain what to do next
30- echo " Use the file \" $FILE_PATH \" for manual activation."
31- echo " Set the contents of the resulting license file as the \$ UNITY_LICENSE variabe."
32+
33+ if [[ $UNITY_EXIT_CODE -eq 0 ]]; then
34+ echo " "
35+ echo " ###########################"
36+ echo " # Succeeded #"
37+ echo " ###########################"
38+ echo " "
39+ echo " Use the file \" $FILE_PATH \" for manual activation."
40+ echo " "
41+ echo " Set the contents of the resulting license file as the \$ UNITY_LICENSE variabe."
42+ echo " "
43+ exit $UNITY_EXIT_CODE
44+ else
45+ echo " "
46+ echo " ###########################"
47+ echo " # Failure #"
48+ echo " ###########################"
49+ echo " "
50+ echo " Please note that the exit code is not very descriptive."
51+ echo " Most likely it will not help you solve the issue."
52+ echo " "
53+ echo " To find the reason for failure: please search for errors in the log above."
54+ echo " "
55+ exit $UNITY_EXIT_CODE
56+ fi
57+
58+
59+
You can’t perform that action at this time.
0 commit comments