diff options
| author | Loïc Guégan <loic.guegan@mailbox.org> | 2024-07-06 17:30:09 +0200 |
|---|---|---|
| committer | Loïc Guégan <loic.guegan@mailbox.org> | 2024-07-06 17:30:09 +0200 |
| commit | 1bee84a7ec0007508ffe709eaf160b97676874a3 (patch) | |
| tree | 041c1ff0c8dfdf585f8faf267f20b5097d2b23fb | |
| parent | b68b16c472a4926f5ccaa13c671a4e5a19e1c855 (diff) | |
Minor changes
| -rwxr-xr-x | sysdump.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -173,6 +173,8 @@ ensure base64 [ "$ACTION" == "dump" ] && { sysdump; exit 0; } # Setting up dump file +ensure awk +ensure jq [ $(grep -c "${DUMP_DELIMITER}" "$1") -ne 0 ] && cleandump "$1" # Setup safegetentry DUMP_FILE="$1" @@ -183,8 +185,6 @@ DUMP_ENTRIES=$(cat "${DUMP_FILE}"|jq -r "keys[]";) # Parse dump file if [ "$ACTION" == "parse" ] then - ensure jq - file=$1 if [ $# -gt 1 ] then shift @@ -204,7 +204,6 @@ fi # Summarize dump file if [ "$ACTION" == "summarize" ] then - ensure jq OS_RELEASE=$(safegetentry /etc/os-release) CPU_INFO=$(safegetentry /proc/cpuinfo) MEM_INFO=$(safegetentry /proc/meminfo) |
