Don't use "echo -n" in /bin/sh scripts on MacOSX
The shell builtin implementation of echo on MacOSX doesn't respect the -n flag. This is the only usage of it in our stack so far and we can avoid it by hiding the generated token from the linter in a different way.
Esse commit está contido em:
@@ -8,9 +8,13 @@ shift;
|
||||
|
||||
SYSTEMLIB=$INSTALL_DIR/systemlib.php
|
||||
|
||||
# If we put the line we're generating into this file,
|
||||
# then the linter will think the generator itself
|
||||
# is generated. Encode it into a variable for safe keeping.
|
||||
AT="@"
|
||||
|
||||
echo "<?hh" > ${SYSTEMLIB}
|
||||
echo -n "// @" >> ${SYSTEMLIB}
|
||||
echo "generated" >> ${SYSTEMLIB}
|
||||
echo "// {$AT}generated" >> ${SYSTEMLIB}
|
||||
|
||||
for i in $@; do
|
||||
if [ ! -f "$i" ]; then
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário