diff --git a/env.sh b/env.sh index 5080b00650f7b..dd884c9a68772 100755 --- a/env.sh +++ b/env.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -function getabsolutepath(){ +getabsolutepath() { [ -d "$1" ] && { cd "$1"; echo "$(pwd -P)"; } || { cd "$(dirname "$1")"; echo "$(pwd -P)/$(basename "$1")"; } }