Skip to content

Commit

Permalink
xshell - fix upcase const
Browse files Browse the repository at this point in the history
  • Loading branch information
fbnmtz committed Dec 9, 2024
1 parent 2c96f51 commit 073ba0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/xshell.lib
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# Created: Sunday, 2022/02/20 - 18:44:18
# Author.: @fbnmtz, ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Monday, 2024/12/09 - 16:21:29
# Last Modified: Monday, 2024/12/09 - 16:25:50
# Modified By..: @fbnmtz, ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.1.13.269
# Version: 0.1.13.273
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
Expand Down Expand Up @@ -173,6 +173,8 @@ templateLib(){
local lastchar="$(echo "$name" | rev | cut -c1)"
# check if it is a 'underscore' character
[ "${lastchar}" != "_" ] && name+="_"
# convert lib name to upercase {^^}
echo -e "\n_xLIB_${name^^}=true\n"
# upcase lib name {^^}
name=$(upcase $name)
# const for LIB
echo -e "\n_xLIB_${name}=true\n"
}

0 comments on commit 073ba0d

Please sign in to comment.