Skip to content

Instantly share code, notes, and snippets.

View netizen-ais's full-sized avatar

Rafael Gawenda netizen-ais

  • Allariz, Ourense
View GitHub Profile
#!/bin/bash
# sxi.mkpubf v2.0.27
i () { ${debug:-logger -t "${dname:-${0##*sxi.}}[$$]"} $(< /var/run/cpd.temp)º ${0##*sxi.} "${*}" ;}
e () { eid=${1}; shift; i "ERROR ${eid}: ${*}"; exit ${eid} ;}
while [ "${1:0:2}" == "--" ]; do declare _${1:2}="${1:2}"; [[ ${1} =~ = ]] && eval _${1:2}; shift; done #getopt