mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-16 19:35:39 +00:00
BRANCH_SELECTOR: added logger placeholders
This commit is contained in:
parent
831b4aeb97
commit
ceb462379d
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Fetch branches from GitHub API
|
||||
branches=$(curl -s https://api.github.com/repos/XargonWan/RetroDECK/branches | grep '"name":' | awk -F '"' '{print $4}')
|
||||
# TODO logger
|
||||
|
||||
# Create an array to store branch names
|
||||
branch_array=()
|
||||
|
@ -13,6 +14,7 @@ done <<< "$branches"
|
|||
|
||||
# Display branches in a Zenity list dialog
|
||||
selected_branch=$(zenity --list --title="Select Branch" --column="Branch" "${branch_array[@]}")
|
||||
# TODO: logger
|
||||
|
||||
# Output selected branch
|
||||
echo "Selected branch: $selected_branch"
|
||||
echo "Selected branch: $selected_branch" # TODO: logger
|
Loading…
Reference in a new issue