Skip to content

Commit

Permalink
Quix-56227: Create executable_folder if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-quix authored Jun 20, 2024
2 parents 245329b + a2c1dd9 commit 7067cd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ file_name="${os}-${arch}.${file_extension}" # the file name to download
downloaded_file="${downloadFolder}/${file_name}" # the file path to download
executable_folder="/usr/local/bin" # Eventually, the executable file will be placed here

# Create executable_folder if it does not exist
mkdir -p "${executable_folder}"

# if version is empty
if [ -z "$version" ]; then
asset_uri="${githubUrl}/${owner}/${repo}/releases/latest/download/${file_name}"
Expand Down Expand Up @@ -119,4 +122,4 @@ else
fi

echo "Run '${exe_name} --help' to get started"
exit 0
exit 0

0 comments on commit 7067cd1

Please sign in to comment.