Fix a bug in a portable relative paths resolver (#483)

It turns out that this `|` was a typo. (See https://unix.stackexchange.com/questions/24293/converting-relative-path-to-absolute-path/24342?noredirect=1#comment623203_24342)
This commit is contained in:
Mateusz Piotrowski
2017-03-16 23:45:57 -05:00
committed by Michel Oosterhof
parent 73aa3dfc86
commit 5eb5ec452b

View File

@@ -15,7 +15,7 @@ find_cowrie_directory() {
else
COWRIEDIR=$(dirname $PWD/$0)/..
fi
COWRIEDIR=$(cd ${COWRIEDIR} && pwd -P 2>/dev/null | pwd)
COWRIEDIR=$(cd ${COWRIEDIR} && pwd -P 2>/dev/null || pwd)
}
activate_venv() {