Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Jun 26, 2024
1 parent fe4e77f commit 9ec6269
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/registry/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ mush_registry_index_update()
}

mush_registry_index_parse() {
local packages_file=$1
local packages_local_file="${MUSH_HOME}/registry/index/$(echo "${packages_file}" | tr -s '/:.' '-')"
local packages_index="${MUSH_HOME}/registry/index/$(echo "${packages_file}" | tr -s '/:.' '-')"
local packages_file
local packages_local_file
local packages_index

packages_file=$1
packages_local_file="${MUSH_HOME}/registry/index/$(echo "${packages_file}" | tr -s '/:.' '-')"
packages_index="${MUSH_HOME}/registry/index/$(echo "${packages_file}" | tr -s '/:.' '-')"

curl -s -L -H 'Cache-Control: no-cache, no-store' "${packages_file}" > "${packages_local_file}"

#sort -t "|" -k 1,1 -o "${packages_local_file}" "${packages_local_file}"
Expand Down

0 comments on commit 9ec6269

Please sign in to comment.