Skip to content

Commit

Permalink
fix editing directories bug
Browse files Browse the repository at this point in the history
  • Loading branch information
admin authored and admin committed Jan 3, 2024
1 parent e773d47 commit e5335f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ _viewFileTree() {
gh api "${fileUrl}" |
jq -r '.content? // .tree?' |
base64 -d >"${tempBuffer}" 2>/dev/null &&
tempBufferLength="$(cat ${tempBuffer})" &&
[[ ${#tempBufferLength} -gt 0 ]] &&
${EDITOR} "${tempBuffer}" ||

# TODO: FIX
# not a file; view filetree in nested directory
_viewFileTree "$(gh api ${fileUrl})"
fi
Expand Down

0 comments on commit e5335f4

Please sign in to comment.