mirror of
https://tildegit.org/envs/pb.git
synced 2025-04-08 00:05:51 +00:00
without -c, remove extra labels
This commit is contained in:
parent
4f869332cf
commit
240ec24e4b
1 changed files with 8 additions and 4 deletions
12
pb
12
pb
|
@ -43,7 +43,11 @@ die () {
|
||||||
if [ "${code}" -eq 0 ]; then
|
if [ "${code}" -eq 0 ]; then
|
||||||
printf "%s\\n" "${msg}"
|
printf "%s\\n" "${msg}"
|
||||||
else
|
else
|
||||||
printf "%s%s%s\\n" "$ERROR" "${msg}" "$RESET" >&2
|
if [ ${flag_colors} -gt 0 ]; then
|
||||||
|
printf "%s%s%s\\n" "$ERROR" "${msg}" "$RESET" >&2
|
||||||
|
else
|
||||||
|
printf "%s\\n" "${msg}" >&2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit "${code}"
|
exit "${code}"
|
||||||
|
@ -139,12 +143,12 @@ if [ ${flag_file} -gt 0 ]; then
|
||||||
fi
|
fi
|
||||||
if [ ${flag_colors} -gt 0 ]; then
|
if [ ${flag_colors} -gt 0 ]; then
|
||||||
printf "%s%s\\t%s" "$RESET" "${f}" "$SUCCESS"
|
printf "%s%s\\t%s" "$RESET" "${f}" "$SUCCESS"
|
||||||
else
|
|
||||||
printf "%s\\t" "${f}"
|
|
||||||
fi
|
fi
|
||||||
if [ -f "${f}" ]; then
|
if [ -f "${f}" ]; then
|
||||||
curl -F"file=@${f}" "${ENDPOINT}"
|
curl -F"file=@${f}" "${ENDPOINT}"
|
||||||
printf "%s" "$RESET"
|
if [ ${flag_colors} -gt 0 ]; then
|
||||||
|
printf "%s" "$RESET"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if [ ${flag_colors} -gt 0 ]; then
|
if [ ${flag_colors} -gt 0 ]; then
|
||||||
printf "%sFile not found.%s\\n" "$ERROR" "$RESET"
|
printf "%sFile not found.%s\\n" "$ERROR" "$RESET"
|
||||||
|
|
Loading…
Add table
Reference in a new issue