Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update output message format to match asdf #8

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions asdf-sync
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# asdf-sync by Rob Zwissler (@robzr) 4/5/2024 https://github.com/robzr/asdf-sync

VERSION=v0.3.0
VERSION=v0.3.1

SVER_RUN=false
#### BEGIN SVER
Expand Down Expand Up @@ -757,7 +757,7 @@ process_tool_versions() {
done
$found || continue
fi
log 4 "Found ${TOOL_VERSIONS_FILE} entry for ${tool}"
log 4 "found ${TOOL_VERSIONS_FILE} entry for ${tool}"

tmp=${line#* }
tmp=${tmp%#*}
Expand Down Expand Up @@ -882,15 +882,15 @@ process_tool_versions() {
fi

if ! $ignore && [ -n "$constraint" ] ; then
log 1 -n "Checking ${tool} constraint \"${constraint}\" "
log 1 -n "${tool} checking sync-constraint \"${constraint}\" "
version=$(asdf list all "${tool}" | sver_max "${constraint}")
if [ "$version" != "${versions[0]}" ] ; then
log 1 "- found new version, upgrading ${versions[0]} -> ${version}."
log 1 "- found new version, upgrading ${versions[0]} -> ${version}"
tmp=$(mktemp)
sed "s/^\( *${tool} *\)[^ ][^ ]*\(.*\)/\1${version}\2/" "$TOOL_VERSIONS_FILE" > "$tmp"
mv "$tmp" "$TOOL_VERSIONS_FILE"
else
log 1 "- up to date."
log 1 "- version up to date"
fi
fi
done < "$TOOL_VERSIONS_FILE"
Expand Down
Loading