Use proper folder when giving an argument
This commit is contained in:
parent
f0495089cf
commit
c91dfbb94e
|
@ -8,12 +8,13 @@ if [ "$1" == "--local-aapt" ];then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script_dir="$(dirname "$(realpath "$0")")"
|
script_dir="$(dirname "$(readlink -f -- "$0")")"
|
||||||
if [ "$#" -eq 1 ]; then
|
if [ "$#" -eq 1 ]; then
|
||||||
if [ -d "$1" ];then
|
if [ -d "$1" ];then
|
||||||
makes="$(find "$1" -name Android.mk)"
|
makes="$(find "$1" -name Android.mk -exec readlink -f -- '{}' \;)"
|
||||||
|
|
||||||
else
|
else
|
||||||
makes="$(realpath "$1")"
|
makes="$(readlink -f -- "$1")"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
cd "$script_dir"
|
cd "$script_dir"
|
||||||
|
|
Loading…
Reference in a new issue