@@ -83,31 +83,29 @@ runs:
83
83
PRITUNL_CONCEALED_OUTPUTS : ${{ inputs.concealed-outputs }}
84
84
shell : bash
85
85
run : |
86
- # Entrypoint for executing 'pritunl-client.sh' script
86
+ # Main entry point for executing the 'pritunl-client.sh' script
87
87
88
- # Define the pritunl_client function
88
+ # Define the ' pritunl_client' function, which sets up and runs the script
89
89
pritunl_client() {
90
- # Declare a local variable to store the path separator
91
- # (using a local variable to avoid polluting the global namespace)
90
+ # Declare a local variable to store the path 'separator', to avoid polluting the global namespace
92
91
local separator
93
92
94
93
# Determine the path separator based on the runner OS
95
94
case "${RUNNER_OS}" in
96
95
Windows)
97
- # Use a backslash (\) for Windows (required for Windows paths)
96
+ # Use a backslash (\) for Windows paths
98
97
separator='\'
99
98
;;
100
99
*)
101
- # Catch-all for non-Windows OSes (Linux, macOS, etc.)
102
- # Use a forward slash (/) for paths
100
+ # Use a forward slash (/) for non-Windows OSes (Linux, macOS, etc.)
103
101
separator='/'
104
102
;;
105
103
esac
106
104
107
- # Construct and run the full path to the 'pritunl-client.sh' script
108
- # using the GITHUB_ACTION_PATH and the separator
105
+ # Construct the full path to the 'pritunl-client.sh' script using 'GITHUB_ACTION_PATH' and the 'separator'
106
+ # and run the script
109
107
"${GITHUB_ACTION_PATH}${separator}pritunl-client.sh"
110
108
}
111
109
112
- # Call the pritunl_client function to start the script
110
+ # Call the ' pritunl_client' function to start the script execution
113
111
pritunl_client
0 commit comments