more robust references to script directory
This commit is contained in:
@@ -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}"
|
||||||
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user