Skip to content

Commit

Permalink
Merge pull request #3081 from AuxXxilium/dev
Browse files Browse the repository at this point in the history
arc: fix branch selection
  • Loading branch information
AuxXxilium authored Aug 18, 2024
2 parents e931b0e + d053c82 commit dc5b9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions files/initrd/opt/arc/arc-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,10 @@ function updateMenu() {
[ -z "${opts}" ] && return 1
if [ ${opts} -eq 1 ]; then
writeConfigKey "arc.branch" "" "${USER_CONFIG_FILE}"
rm -f "${PART1_PATH}/ARC-BRANCH"
elif [ ${opts} -eq 2 ]; then
writeConfigKey "arc.branch" "next" "${USER_CONFIG_FILE}"
echo "next" >"${PART1_PATH}/ARC-BRANCH"
fi
ARCBRANCH="$(readConfigKey "arc.branch" "${USER_CONFIG_FILE}")"
dialog --backtitle "$(backtitle)" --title "Switch Buildsystem" --aspect 18 \
Expand Down
2 changes: 1 addition & 1 deletion files/initrd/opt/arc/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if grep -q "automated_arc" /proc/cmdline; then
else
writeConfigKey "automated" "false" "${USER_CONFIG_FILE}"
fi
[ -f "${PART1_PATH}/ARC-BRANCH" ] && initConfigKey "arc.branch" "next" "${USER_CONFIG_FILE}" || initConfigKey "arc.branch" "" "${USER_CONFIG_FILE}"
[ -f "${PART1_PATH}/ARC-BRANCH" ] && writeConfigKey "arc.branch" "next" "${USER_CONFIG_FILE}" || writeConfigKey "arc.branch" "" "${USER_CONFIG_FILE}"
[ -f "${PART3_PATH}/automated" ] && rm -f "${PART3_PATH}/automated" >/dev/null 2>&1 || true
# Check for compatibility
compatboot
Expand Down

0 comments on commit dc5b9c4

Please sign in to comment.