Прямо удалить «\n» из вывода fgets, если каждая строка имеет «\n»
line[strlen(line) - 1] = '\0';
В противном случае:
void remove_newline_ch(char *line)
{
int new_line = strlen(line) -1;
if (line[new_line] == '\n')
line[new_line] = '\0';
}
Кажется, это просто ненужные символы в конце ...
git push $GITHUB_REPOSITORY $BRANCH:$BRANCH
# Builds the project if applicable.
if [ -z "$BUILD_SCRIPT" ]
then
$BUILD_SCRIPT
fi
# Commits the data to Github.
git add -f $FOLDER