qcm

Faire des qcm simplement - retour accueil

git clone git://bebou.netlib.re/qcm
Log | Files | Refs | README |

commit 41c8c274fba9a648e348a2d1f7a759faf28349b0
parent 0d595b7a55fadf40f1b1714d1c89da2482c3470d
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Thu, 26 Dec 2024 11:09:40 +0100

Plus de X dans mktemp, pour openbsd

Rend les identifiants un peu fastidieux, incite à l'utilisation de son
propre id

Diffstat:
Mqcm.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qcm.sh b/qcm.sh @@ -158,7 +158,7 @@ logs="${l:-/var/log/nginx/access.log}" [ ! -e "$logs" ] && { echo "fichier de log '$logs' n'existe pas" >&2;exit 1; } -tmpd=$(mktemp -d "${TMPDIR:-/tmp}/qcm.XXX") +tmpd=$(mktemp -d "${TMPDIR:-/tmp}/qcm.XXXXXX") if [ -n "$i" ];then existingids=$(ps -A -l -f | grep "[ /]qcm " | grep -o -- '-i [^ ]\+' |