Skip to content

Commit

Permalink
Remove suprious variable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Jan 31, 2025
1 parent 9d0e13b commit 2c5b1d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -eo pipefail
# Author: [email protected]
# License: BSD-2

version="0.1.0-beta-1"
tools=("cli" "epoch")
selected=()
timestamp=$(date '+%Y%m%d%H%M%S')
Expand Down Expand Up @@ -118,13 +117,13 @@ case $i in
;;
v[0-9]*.[0-9]*.[0-9]*|[0-9]*.[0-9]*.[0-9]*)
if [[ -n $kind ]]; then
echo "Error: Either use a version number or a qualifier ('stable' or 'nightly'), not both." >&2
echo "Error: Either use a version number or a qualifier ('stable' or 'nightly'), not both" >&2
exit 1
fi
version=${i#v}
supported="^(0\.([5-9][0-9]*|[1-9][0-9]+)\.[0-9]+)|(([1-9][0-9]*)\.[0-9]+\.[0-9]+)$"
if ! [[ $version =~ $supported ]]; then
echo "Error: Only versions 0.5.0 and up can be installed using this script." >&2
echo "Error: Only versions 0.5.0 and up can be installed using this script" >&2
exit 1
fi
;;
Expand Down

0 comments on commit 2c5b1d9

Please sign in to comment.