Lines that begin with "#" are comments, which are ignored by the interpreter.
There is no multiline comment in sh, only one # is added to each line. Can only be like this:
- #--------------------------------------------
- # This is a script that automatically plays IPA, based on Webfrogs's ipa-build writing:
- # https://github.com/webfrogs/xcode_shell/blob/master/ipa-build
-
- # features: Automatic packaging for Etao iOS app, 14 channels of output IPA package
- # Features: automatic packaging, no input parameters required
- #--------------------------------------------
-
- ##### User Configuration area start #####
- #
Li> #
- # project root directory, it is recommended to put this script at the root of the project, there is no need to change the
- # application name, ensuring that the Target_name.app name under product in Xcode is identical
- #
- ##### User Configuration area end #####
What if, in the course of development, you encounter a large segment of code that needs to be annotated temporarily and then uncomment later? Each line with a # symbol is too laborious, you can put this piece of code to be annotated with a pair of curly braces, defined as a function, there is no place to call this function, the code will not be executed, to achieve the same effect as the annotation.
Shell Script Learning 11 Shell Comment