Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
JustAnotherArchivist
/
little-things
Segui
2
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Colourise sha1sum output
master
JustAnotherArchivist
3 anni fa
parent
18a3305e79
commit
cbebafe588
1 ha cambiato i file
con
1 aggiunte
e
1 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+1
-1
iasha1check
+ 1
- 1
iasha1check
Vedi File
@@ -41,7 +41,7 @@ fi
echo
echo "SHA-1 comparison:"
sha1sum -c < <(printf "%s\n" "${iasha1sums[@]}") > >(
sed '
s,^, ,') 2>&1
sha1sum -c < <(printf "%s\n" "${iasha1sums[@]}") > >(
perl -pe 's,^(.*)(?<!: OK)$,'"${RED}"'\1'"${RESET}"',; s,: OK$,: '"${GREEN}OK${RESET}"',;
s,^, ,') 2>&1
if [[ $? -eq 0 ]]
then
echo "SHA-1 comparison: ${GREEN}OK${RESET}"
Scrivi
Anteprima
Caricamento…
Annulla
Salva