The line starting with "#" is a comment and will be ignored by the interpreter.
Sh does not contain comments from multiple lines. Only one # sign can be added to each line. It can only be like this:
# ------------------------------------------ # This is an automatic IPA script, based on webfrogs IPA-build writing: # https://github.com/webfrogs/xcode_shell/blob/master/ipa-build# function: automatically for EtAO iOS app packaging, IPA packages with 14 output channels # features: fully automated packaging, you do not need to enter any parameters # -------------------------------------- ###### start of the user configuration area ####### the project root directory. We recommend that you put this script in the project root directory, you do not need to change the application name here. Make sure that the Application name is consistent with the target_name.app name under product in xcode ##### end of the user configuration area #####
What should I do if a large code segment needs to be commented out temporarily and the comment is canceled later? Adding a # symbol to each line is too laborious. You can enclose the code to be annotated with a pair of curly brackets and define it as a function. This function is called everywhere, this code won't be executed, achieving the same effect as the annotation.
Shell tutorial 6-shell comments