Skip to content

Commit

Permalink
Merge pull request #99 from HPCNow/main
Browse files Browse the repository at this point in the history
froster v0.14.13
  • Loading branch information
victormachadoperez authored Jun 26, 2024
2 parents 01fa711 + 55c1783 commit 7ad8375
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions froster/froster.py
Original file line number Diff line number Diff line change
Expand Up @@ -6686,8 +6686,11 @@ def compare_versions(version1, version2):
if not mute_no_update:
log(f'\nFroster is up to date: froster v{current}\n')

return True

except Exception:
print_error()
return False

def parse_arguments(self):
'''Gather and parse command-line arguments'''
Expand Down Expand Up @@ -7186,6 +7189,8 @@ def main():
elif args.subcmd in ['credentials', 'crd']:
res = cmd.subcmd_credentials(cfg, aws)
elif args.subcmd in ['update', 'upd']:
# Calling check_update as we are checking for udpates (used to store the last timestamp check)
cfg.check_update()
res = cmd.subcmd_update(mute_no_update=False)
else:

Expand Down
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ catch() {
echo "Rolling back installation..."

if pipx list >/dev/null 2>&1 | grep 'froster'; then
pipx uninstall froster >/dev/null 2>&1
pipx uninstall froster
fi

# Restore (if any) backed up froster config files
Expand Down Expand Up @@ -291,11 +291,11 @@ install_pipx() {
if [[ -z $(command -v pipx) ]]; then

# Install or upgrade pipx
python3 -m pip install --user --upgrade pipx >/dev/null 2>&1
python3 -m pip install --user --upgrade pipx

# Ensure path for pipx
pipx_path=$(get_dir "pipx")
${pipx_path}/pipx ensurepath >/dev/null 2>&1
${pipx_path}/pipx ensurepath

# Ensure ~/.local/bin is in the PATH for this session
export PATH="$HOME/.local/bin:$PATH"
Expand All @@ -313,11 +313,11 @@ install_froster() {

if [ "$LOCAL_INSTALL" = "true" ]; then
echo " Installing from the current directory"
pipx install . >/dev/null 2>&1 &
pipx install .
spinner $!
else
echo " Installing from PyPi package repository"
pipx install froster >/dev/null 2>&1 &
pipx install froster
spinner $!
fi

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "froster"
version = "0.14.12"
version = "0.14.13"
description = "Froster is a tool for easy data transfer between local file systems and AWS S3 storage."
authors = ["Victor Machado <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 7ad8375

Please sign in to comment.