Skip to content

Commit

Permalink
fix: make nightly command work on MacOS again
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Oct 18, 2022
1 parent 4e0d3c1 commit 59f3e76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/command-nightly.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ get_installation() {
fi
}

installation=$(get_installation)
installation="$(get_installation)"

if [ $installation == "failed" ]; then
if [ "$installation" == "failed" ]; then
echo "* No nightly installation found; installing..."
install
elif [ $(expr $(date +%s) - $(date -r $installation +%s)) -gt 86400 ]; then
elif [ $(expr $(date +%s) - $(date -r "$installation" +%s)) -gt 86400 ]; then
echo "* Outdated nightly found; reinstalling..."
uninstall
install
Expand Down

0 comments on commit 59f3e76

Please sign in to comment.