build-package.sh: Fix two shellcheck warnings
[termux-packages] / build-package.sh
index 0be276f..fcda585 100755 (executable)
@@ -637,7 +637,7 @@ termux_step_post_configure () {
 }
 
 termux_step_make () {
-       if ls *akefile &> /dev/null; then
+       if ls ./*akefile &> /dev/null; then
                if [ -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then
                        make -j $TERMUX_MAKE_PROCESSES
                else
@@ -647,7 +647,7 @@ termux_step_make () {
 }
 
 termux_step_make_install () {
-       if ls *akefile &> /dev/null; then
+       if ls ./*akefile &> /dev/null; then
                : ${TERMUX_PKG_MAKE_INSTALL_TARGET:="install"}:
                # Some packages have problem with parallell install, and it does not buy much, so use -j 1.
                if [ -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then