Skip to content
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
18 changes: 2 additions & 16 deletions scripts/getm3fs.sh → scripts/getm3fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,10 @@ if [ -z "${ARCH}" ]; then
esac
fi

# # Fetch latest version
# if [ "m${VERSION}" = "m" ]; then
# VERSION="$(curl -sL https://api.github.com/repos/open3fs/m3fs/releases |
# grep -o 'download/v[0-9]*.[0-9]*.[0-9]*/' |
# sort --version-sort |
# tail -1 | awk -F'/' '{ print $2}')"
# VERSION="${VERSION##*/}"
# fi
VERSION=$(basename $(curl -s -L -I -o /dev/null -w '%{url_effective}' "https://github.com/open3fs/m3fs/releases/latest"))
echo "The latest version of m3fs is ${VERSION}"

# if [ "m${VERSION}" = "m" ]; then
# echo "Unable to get latest version of m3fs. Set VERSION env var and re-run. For example: export VERSION=v1.0.0"
# echo ""
# exit
# fi

VERSION="v0.2.0"
DOWNLOAD_URL="https://artifactory.open3fs.com/m3fs/m3fs_${VERSION}_${ARCH}.tar.gz"

echo ""
echo "Downloading m3fs ${VERSION} from ${DOWNLOAD_URL} ..."
echo ""
Expand Down