Fix for #1023 sndev: 317: Syntax error: redirection unexpected (#1024)

* printf -> echo

* Update sndev

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
This commit is contained in:
Felipe Bueno 2024-04-05 10:40:12 -03:00 committed by GitHub
parent 76f90e0691
commit cc8b16a7e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

2
sndev
View File

@ -314,7 +314,7 @@ __sndev__pr_track() {
push=$(git remote -v | grep -e "$url .*push" | head -n1) || true
if [ -n "$push" ]; then
remote=$(printf "%s" $(cut -f 1 <<<"$push"))
remote=$(echo "$push" | cut -f 1)
else
remote=$(echo "$json" | grep -e '"login"' | head -n1 | sed -e 's/^.*"login":[[:space:]]*"//; s/",[[:space:]]*$//')
git remote remove "$remote" 1>/dev/null 2>&1 || true