Skip to content

Commit

Permalink
file.search.int to file.search.pos updated in _uri.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
OurCodeBase committed Jan 25, 2024
1 parent 688dbd2 commit 5f609ba
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 5f609ba

Please sign in to comment.