simplify tail in developer scripts (#23465)

This commit is contained in:
Vítor Galvão
2016-08-05 13:53:31 +01:00
committed by GitHub
parent 3d2e090aa8
commit 9cc8218687
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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}")"
+1 -1
View File
@@ -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}")"