Compare commits
4 Commits
7de4aa3e8e
...
204162a747
| Author | SHA1 | Date | |
|---|---|---|---|
| 204162a747 | |||
| b852d13475 | |||
| 64d9e38a94 | |||
| 71539fb906 |
@@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
. /home/spezi/Scripts/utils/colors.sh
|
# https://stackoverflow.com/a/246128
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
. $SCRIPT_DIR/colors.sh
|
||||||
|
|
||||||
logger () {
|
logger () {
|
||||||
echo -e "${NC}$(date) - [$BASHPID] - [${0##*/}] - $@${NC}"
|
echo -e "${NC}$(date) - [$BASHPID] - [${0##*/}] - $@${NC}"
|
||||||
|
|||||||
14
madmail.sh
14
madmail.sh
@@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mailer () {
|
|
||||||
if ! [[ -z "$3" ]]; then
|
|
||||||
mailfrom="From: $3 <mad@pogoan.de>"
|
|
||||||
fi
|
|
||||||
if ! [[ -z "$4" ]]; then
|
|
||||||
mailto="$4"
|
|
||||||
elif [[ -z "$mailto" ]]; then
|
|
||||||
mailto="christian@betz.cc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "$1" | mailx -s "$2" --append="$mailfrom" $mailto &>/dev/null
|
|
||||||
}
|
|
||||||
1
madmail.sh
Symbolic link
1
madmail.sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
mailer.sh
|
||||||
14
mailer.sh
Normal file
14
mailer.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mailer () {
|
||||||
|
if ! [[ -z "$3" ]]; then
|
||||||
|
mailfrom="From: $3 <christian@betz.cc>"
|
||||||
|
fi
|
||||||
|
if ! [[ -z "$4" ]]; then
|
||||||
|
mailto="$4"
|
||||||
|
elif [[ -z "$mailto" ]]; then
|
||||||
|
mailto="christian@betz.cc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "$1" | mailx -s "$2" --append="$mailfrom" $mailto &>/dev/null
|
||||||
|
}
|
||||||
6
math.sh
6
math.sh
@@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DIRECTORY=$(cd `dirname $0` && pwd)
|
|
||||||
. /home/spezi/Scripts/utils/utils.sh
|
# https://stackoverflow.com/a/246128
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
. $SCRIPT_DIR/utils.sh
|
||||||
|
|
||||||
# https://unix.stackexchange.com/questions/66766/float-operation-with-bc
|
# https://unix.stackexchange.com/questions/66766/float-operation-with-bc
|
||||||
# https://unix.stackexchange.com/questions/89712/how-to-convert-floating-point-number-to-integer
|
# https://unix.stackexchange.com/questions/89712/how-to-convert-floating-point-number-to-integer
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user