générer un bouton aléatoire pour un site - retour accueil
git clone git://bebou.netlib.re/rw
Log | Files | Refs | README |
commit 7882907bad66eddf21f6d1991bcc2a5597e88fb5 parent ca6b477cabc68128a958d47383cc1df1ac7327cf Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Tue, 20 May 2025 16:47:31 +0200 On fait rien si y'a pas de fichier html Diffstat:
M | rw | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/rw b/rw @@ -31,6 +31,7 @@ done find "$d" -name '*.html' -type f > "$tmpd/files" nb="$(< "$tmpd/files" wc -l)" +[ "$nb" = "0" ] && exit 0 < /dev/urandom tr -dc '0-9\n' | grep -oE '[0-5]..' |