Skip to content

Commit

Permalink
fix: ensure executable permissions on install (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay authored Aug 31, 2023
1 parent 12461f2 commit 648e9eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ do_install_binary() {
(cd $tmp_dir && unzip -q "$asset_name")

# Install binary
sudo -p "sudo password required for installing to $INSTALL_DIR: " mv "$tmp_dir/$BINARY_NAME" $INSTALL_DIR
sudo_cmd='mv '"$tmp_dir/$BINARY_NAME"' '"$INSTALL_DIR"' && chmod a+x '"$INSTALL_DIR/$BINARY_NAME"
sudo -p "sudo password required for installing to $INSTALL_DIR: " -- sh -c "$sudo_cmd"
echo "Installed speakeasy to $INSTALL_DIR"

# Cleanup
Expand Down

0 comments on commit 648e9eb

Please sign in to comment.