2018-01-03 18:34:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-01-06 19:33:37 +00:00
|
|
|
|
2018-01-03 18:34:50 +00:00
|
|
|
### Settings ###
|
2018-01-06 19:33:37 +00:00
|
|
|
own_dir="${BASH_SOURCE%/*}/";
|
|
|
|
|
2018-01-03 18:34:50 +00:00
|
|
|
logo_filename="logo.txt";
|
|
|
|
info_filename=$(mktemp --suffix -cloudcatcher);
|
|
|
|
|
2018-01-06 19:33:37 +00:00
|
|
|
if [ -f "${own_dir}.cloudcatcher-settings" ]; then
|
|
|
|
source "${own_dir}.cloudcatcher-settings";
|
2018-01-03 18:34:50 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
################
|
|
|
|
|
2018-01-06 19:33:37 +00:00
|
|
|
${own_dir}cloudcatcher-info.sh >${info_filename}
|
2018-01-03 18:34:50 +00:00
|
|
|
|
|
|
|
### Output ###
|
|
|
|
echo
|
|
|
|
pr -mtJ ${logo_filename} ${info_filename};
|
|
|
|
|
|
|
|
##############
|
|
|
|
|
|
|
|
### Cleanup ###
|
|
|
|
rm "${info_filename}"
|
|
|
|
|
|
|
|
###############
|