Skip to content

Commit

Permalink
Merge pull request #2 from OurCodeBase/develop
Browse files Browse the repository at this point in the history
file.search.int to file.search.pos updated in _uri.sh file
  • Loading branch information
OurCodeBase authored Jan 25, 2024
2 parents 45e8578 + 5f609ba commit fcd8ada
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _uri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ _uri.addModuleSource(){
# checking catogories.
if [[ "${PRIMARY_MODULES[*]}" == *"${ARGModuleVar}"* ]]; then
# position of catogory hash.
local PosMap="$(file.search.int "#@PRIMARY_MODULES" "${ARGResultFile}")";
local PosMap="$(file.search.pos "#@PRIMARY_MODULES" "${ARGResultFile}")";
elif [[ "${SECONDARY_MODULES[*]}" == *"${ARGModuleVar}"* ]]; then
# position of catogory hash.
local PosMap="$(file.search.int "#@SECONDARY_MODULES" "${ARGResultFile}")";
local PosMap="$(file.search.pos "#@SECONDARY_MODULES" "${ARGResultFile}")";
elif [[ "${TERTIARY_MODULES[*]}" == *"${ARGModuleVar}"* ]]; then
# position of catogory hash.
local PosMap="$(file.search.int "#@TERTIARY_MODULES" "${ARGResultFile}")";
local PosMap="$(file.search.pos "#@TERTIARY_MODULES" "${ARGResultFile}")";
else
# position of catogory hash.
local PosMap="$(file.search.int "#@OTHER_MODULES" "${ARGResultFile}")";
local PosMap="$(file.search.pos "#@OTHER_MODULES" "${ARGResultFile}")";
fi
# installing module.
file.append.vert "$(_uri.chotuCode "${ARGModule}")" "$(( PosMap+1 ))" "${ARGResultFile}" &&
Expand Down

0 comments on commit fcd8ada

Please sign in to comment.