Skip to content

Instantly share code, notes, and snippets.

@Keyframe
Keyframe / mingwget.sh
Created October 3, 2016 12:56 — forked from drewwells/mingwget.sh
Cross compile windows on OS X with mingw
#!/bin/sh
# check_error my_cmd --param ...
check_error() {
$* # we execute everything
if [ $? -ne 0 ]; then
echo "check_error(): erreur avec la commande suivante:"
echo "check_error(): $*"
echo "check_error(): Continuer? o/n"
read a