Skip to content

Commit

Permalink
🐛 grep docker field
Browse files Browse the repository at this point in the history
  • Loading branch information
marchocode committed Feb 20, 2023
1 parent ba60eb8 commit 3bd318d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiny-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ docker(){
log "System Configuation is loading..."
curl -s ${BUCKET}/docker.destination > ${system_tmp}

destinations=($(cat ${system_tmp} | grep "docker-${version}"))
destinations=($(cat ${system_tmp} | grep "${release}-${version}"))

if [[ ${#destinations[@]} -eq 0 ]]; then
destinations=($(cat ${system_tmp} | grep "docker-default"))
destinations=($(cat ${system_tmp} | grep "${release}-default"))
warn "Loading Default Configuation."
fi

Expand Down

0 comments on commit 3bd318d

Please sign in to comment.