Skip to content

Commit

Permalink
Added TitleCaseConverter function in SF_deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiTronix committed Aug 31, 2024
1 parent 727c3fe commit 3064c5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/SF_deployer
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ function deploy_file() {
fi
}

TitleCaseConverter() {
echo "$1" | sed 's/./\L&/; s/^./\u&/'
}

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

# Set FOLDER based on conditions
if [ "$RPI_TYPE" = "64" ]; then
if [ "$BASE" = "true" ]; then
Expand Down

0 comments on commit 3064c5a

Please sign in to comment.