mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
simplify tail in developer scripts (#23465)
This commit is contained in:
@@ -56,7 +56,7 @@ function go_to_repo_and_update {
|
||||
function fix_outdated_appcasts {
|
||||
local issue_number cask_name pr_number
|
||||
|
||||
for line in $(ghi list --state open --no-pulls --label 'outdated appcast' --reverse | tail -n +2); do
|
||||
for line in $(ghi list --state open --no-pulls --label 'outdated appcast' --reverse | tail +2); do
|
||||
[[ "${line}" == 'None.' ]] && break # exit early if there are no relevant issues in repo
|
||||
|
||||
issue_number="$(awk '{print $1}' <<< "${line}")"
|
||||
|
||||
@@ -71,7 +71,7 @@ function merge_outdated_appcasts {
|
||||
|
||||
repo_name="${1}"
|
||||
|
||||
for line in $(ghi list --state open --pulls --label 'outdated appcast' --reverse | tail -n +2); do
|
||||
for line in $(ghi list --state open --pulls --label 'outdated appcast' --reverse | tail +2); do
|
||||
[[ "${line}" == 'None.' ]] && break # exit early if there are no relevant issues in repo
|
||||
|
||||
pr_number="$(awk '{print $1}' <<< "${line}")"
|
||||
|
||||
Reference in New Issue
Block a user