Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
sebsauvage
sebsauvage
@sebsauvage@framapiaf.org  ·  activity timestamp 2 weeks ago

linux #bash
Vous connaissez la blague du mec qui met "set -o errexit" au début de son script et qui cherche pendant 20 minutes pourquoi il n'arrive pas à récupérer le code de sortie de ffmpeg quand il fait une erreur ?

  • Copy link
  • Flag this post
  • Block
EnigmaRotor
EnigmaRotor
@EnigmaRotor@mastodon.bsd.cafe replied  ·  activity timestamp 2 weeks ago

@sebsauvage je préfère quand-même celle du croque-mort qui rentre dans un bar pour se taper une bière.

  • Copy link
  • Flag this comment
  • Block
JCF  🍻 🎸 🇨🇵 💻🐧
JCF 🍻 🎸 🇨🇵 💻🐧
@JCF@diaspodon.fr replied  ·  activity timestamp 2 weeks ago

@sebsauvage
Heuuuu PEBCAK ?

  • Copy link
  • Flag this comment
  • Block
vetetix
vetetix
@vetetix@mamot.fr replied  ·  activity timestamp 2 weeks ago

@sebsauvage ah, je connais ça, je me suis déjà fait avoir.

Si tu veux conserver ton set -e, met ta commande dans un :

if ! ffmpeg …; then
errcode=$?
fi

  • Copy link
  • Flag this comment
  • Block
ache
ache
@ache@mastodon.xyz replied  ·  activity timestamp 2 weeks ago

@sebsauvage ahahah :')

Hilarant.

  • Copy link
  • Flag this comment
  • Block
YanK l'Innommé
YanK l'Innommé
@YanK@ludosphere.fr replied  ·  activity timestamp 2 weeks ago

@sebsauvage tout ça parce qu'il pensait l'avoir mis en commentaire

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct