Skip to content

Commit

Permalink
fix: Correct issue with user setup script execution check
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Feb 28, 2024
1 parent e980853 commit 93bc12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system_files/desktop/shared/usr/libexec/bazzite-user-setup
Expand Up @@ -28,8 +28,8 @@ USER_SETUP_FEDORA_VER_RAN=$(cat $USER_SETUP_FEDORA_VER_FILE)
USER_SETUP_IMAGE_VER_RAN=$(cat $USER_SETUP_IMAGE_VER_FILE)

# Run script if updated
if [[ -f $USER_SETUP_VER_FILE && $USER_SETUP_VER = $USER_SETUP_VER_RAN ]]; then
if [[ -f $USER_SETUP_FEDORA_VER_FILE && $FEDORA_VERSION = $USER_SETUP_FEDORA_VER_RAN && $BASE_IMAGE_NAME == USER_SETUP_IMAGE_VER_RAN ]]; then
if [[ -f $USER_SETUP_VER_FILE && -f $USER_SETUP_FEDORA_VER_RAN && -f $USER_SETUP_FEDORA_VER_FILE ]]; then
if [[ $USER_SETUP_VER = "$USER_SETUP_VER_RAN" && $FEDORA_VERSION = "$USER_SETUP_FEDORA_VER_RAN" && $BASE_IMAGE_NAME = "$USER_SETUP_IMAGE_VER_RAN" ]]; then
echo "User setup v$USER_SETUP_VER has already run. Exiting..."
exit 0
fi
Expand Down

0 comments on commit 93bc12f

Please sign in to comment.