moved huhh script to scripts/ directory
This commit is contained in:
parent
65d6c36c3e
commit
90be1ef9fb
1 changed files with 0 additions and 0 deletions
18
scripts/huhh
Executable file
18
scripts/huhh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
EXPR_MSG="evaluating derivation"
|
||||
PROP_MSG="of derivation"
|
||||
|
||||
LOC=$1
|
||||
if [ -z $1 ]; then
|
||||
exec {1}<>"$LOC"
|
||||
fi
|
||||
|
||||
ERROR_LINE=$(<$LOC grep -nF "error:" \
|
||||
| tail -n1 \
|
||||
| awk '{print substr($1,1,length($1)-1)}' )
|
||||
<$LOC sed -n "$ERROR_LINE,\$p"
|
||||
|
||||
echo "[*] Reason:"
|
||||
<$LOC grep "evaluating attribute '.*' of derivation" \
|
||||
| awk '{ print substr($NF, 2, length($NF)-2), substr($5, 2, length($5)-2)}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue