Skip to content

Commit

Permalink
Added TitleCaseConverter function in SF_docs_deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiTronix committed Sep 1, 2024
1 parent 136643f commit 65f9c8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion utils/SF_docs_deployer
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ if ! [[ "$FOLDER_TYPE" =~ ^("root"|"main"|"base"|"experimental")$ ]]; then
exit 1
fi

echo "Doing $TOOLCHAIN with Folder: $FOLDER_TYPE, RASPBERRY: $RPI_TYPE AND OS: $RPIOS_TYPE!"
TitleCaseConverter() {
echo "$1" | sed 's/./\L&/; s/^./\u&/'
}

RPIOS_TYPE="$(TitleCaseConverter "$RPIOS_TYPE")"

echo "Deploying $TOOLCHAIN Docs with Folder: $FOLDER_TYPE, RASPBERRY: $RPI_TYPE AND OS: $RPIOS_TYPE!"

# deploy docs
BASE_URL="sftp://frs.sourceforge.net/home/pfs/project/raspberry-pi-cross-compilers"
Expand Down

0 comments on commit 65f9c8d

Please sign in to comment.