Skip to content

Commit

Permalink
fix: install script
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAJocke committed Nov 21, 2023
1 parent 45649df commit 66bbcec
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 @@ -34,13 +34,13 @@ if ! unzip -q "$temp_dir/release.zip" -d "$temp_dir"; then
fi
echo "Archive extracted successfully."

chmod +x "$temp_dir/$repo-$os-$arch/whisper-keys"
chmod +x "$temp_dir/$repo-$os-$arch/whisper-keys-engine"

if [ ! -d "/usr/local/bin" ]; then
sudo mkdir -p /usr/local/bin
fi

if ! sudo mv "$temp_dir/$repo-$os-$arch/whisper-keys" /usr/local/bin/; then
if ! sudo mv "$temp_dir/$repo-$os-$arch/whisper-keys-engine" /usr/local/bin/; then
echo "Failed to move the binary to /usr/local/bin."
exit 1
fi
Expand All @@ -49,4 +49,3 @@ rm -rf "$temp_dir"

echo
echo "Installation completed successfully."

0 comments on commit 66bbcec

Please sign in to comment.