chmod -- doesn't work on macOS

This commit is contained in:
Ajeet D'Souza 2024-05-10 18:07:19 +05:30 committed by GitHub
parent 1cb6312fb2
commit ae33940331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ main() {
# Install binary. # Install binary.
ensure try_sudo mkdir -p -- "${BIN_DIR}" ensure try_sudo mkdir -p -- "${BIN_DIR}"
ensure try_sudo cp -- "${_bin_name}" "${BIN_DIR}/${_bin_name}" ensure try_sudo cp -- "${_bin_name}" "${BIN_DIR}/${_bin_name}"
ensure try_sudo chmod +x -- "${BIN_DIR}/${_bin_name}" ensure try_sudo chmod +x "${BIN_DIR}/${_bin_name}"
echo "Installed zoxide to ${BIN_DIR}" echo "Installed zoxide to ${BIN_DIR}"
# Install manpages. # Install manpages.