1
0
Fork 0

Minor bugfixes

master
Starbeamrainbowlabs 5 years ago
parent 6c68107e5a
commit 0f423543cc
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 3
      cloudcatcher-info.sh
  2. 9
      cloudcatcher.sh

@ -9,6 +9,7 @@
# ███████ ███████ ██ ██████ ██ #
#############################################
own_dir="${BASH_SOURCE%/*}/";
tmpdir="$(mktemp --directory --suffix -cloudcatcher)/";
##########################
@ -65,7 +66,7 @@ uname -r >${tmpdir}kernel-version.txt &
# Uptime
uptime --pretty | sed -e 's/up //' >${tmpdir}uptime.txt &
# Current ips
ip addr show scope global | awk -f ./parse_interface_ips.awk >${tmpdir}ips.txt &
ip addr show scope global | awk -f "${own_dir}/parse_interface_ips.awk" >${tmpdir}ips.txt &
# Load
cat /proc/loadavg | cut -d' ' -f 2 >${tmpdir}load.txt &

@ -1,16 +1,19 @@
#!/usr/bin/env bash
### Settings ###
own_dir="${BASH_SOURCE%/*}/";
logo_filename="logo.txt";
info_filename=$(mktemp --suffix -cloudcatcher);
if [ -f .cloudcatcher-settings ]; then
source .cloudcatcher-settings;
if [ -f "${own_dir}.cloudcatcher-settings" ]; then
source "${own_dir}.cloudcatcher-settings";
fi
################
./cloudcatcher-info.sh >${info_filename}
${own_dir}cloudcatcher-info.sh >${info_filename}
### Output ###
echo

Loading…
Cancel
Save