Skip to content

Commit

Permalink
fix: ensure multi user installation keeps permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-zarrad committed Mar 26, 2024
1 parent 04dd57c commit ef31048
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ else
fi
fi

if [[ "$detected_os" != "Darwin" ]]; then
if ! [[ "$detected_os" = "Darwin" ]]; then
fix_user_permissions "${start_arg_install_for_user_parameter}" "${ZPLUG_FOLDER_PATH}"
fi

Expand All @@ -273,7 +273,7 @@ print_message ""
print_message "Backing up ${ZSHRC_PATH} to ${ZSHRC_UNMODIFIED_PATH}..."
if [ -f "${ZSHRC_PATH}" ]; then
if cp "${ZSHRC_PATH}" "${ZSHRC_UNMODIFIED_PATH}"; then
if [[ "$detected_os" != "Darwin" ]]; then
if ! [[ "$detected_os" = "Darwin" ]]; then
fix_user_permissions "${start_arg_install_for_user_parameter}" "${ZSHRC_UNMODIFIED_PATH}"
fi
print_success "Backed up ${ZSHRC_PATH}"
Expand Down Expand Up @@ -377,7 +377,7 @@ include_templates "${TEMPLATE_END}" "${start_arg_disable_template_engine_paramet
print_template_warnings "${start_arg_disable_template_engine_parameter}"

# Fix .zshrc permissions
if [[ "$detected_os" != "Darwin" ]]; then
if ! [[ "$detected_os" = "Darwin" ]]; then
fix_user_permissions "${start_arg_install_for_user_parameter}" "${ZSHRC_PATH}"
fi

Expand Down

0 comments on commit ef31048

Please sign in to comment.