Skip to content

Commit 98d0536

Browse files
authored
fix(user-setup): Correct Fedora version check, prevents setup from running every boot
The file path for the last ran Fedora version wasn't being referenced causing the script to rerun every boot
1 parent 37d3695 commit 98d0536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system_files/desktop/shared/usr/bin/bazzite-user-setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ USER_SETUP_FEDORA_VER_RAN=$(cat $USER_SETUP_FEDORA_VERSION)
1515

1616
# Run script if updated
1717
if [[ -f $USER_SETUP_VER_FILE && $USER_SETUP_VER = $USER_SETUP_VER_RAN ]]; then
18-
if [[ -f USER_SETUP_FEDORA_VER_FILE && $FEDORA_VERSION = $USER_SETUP_FEDORA_VER_RAN ]]; then
18+
if [[ -f $USER_SETUP_FEDORA_VER_FILE && $FEDORA_VERSION = $USER_SETUP_FEDORA_VER_RAN ]]; then
1919
echo "User setup has already run. Exiting..."
2020
exit 0
2121
fi

0 commit comments

Comments
 (0)