Skip to content

Commit

Permalink
fix: bazzite-user-setup should only run when needed (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Apr 26, 2024
1 parent 8c544ae commit f33d1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_files/desktop/shared/usr/libexec/bazzite-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ 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 && -f $USER_SETUP_FEDORA_VER_RAN && -f $USER_SETUP_FEDORA_VER_FILE ]]; then
if [[ -f $USER_SETUP_VER_FILE && -f $USER_SETUP_FEDORA_VER_FILE && -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
Expand Down

0 comments on commit f33d1e7

Please sign in to comment.