Index: build_tools/common.sh |
diff --git a/build_tools/common.sh b/build_tools/common.sh |
index c03bbef595d9a4b9fac6eefc0ccdc875b61a9c99..4295b192b1e28e1be3d9648f4d84afb4a823f6e1 100644 |
--- a/build_tools/common.sh |
+++ b/build_tools/common.sh |
@@ -618,7 +618,7 @@ PublishByArchForDevEnv() { |
if [[ "${TOOLCHAIN}" = "glibc" || "${TOOLCHAIN}" = "bionic" ]]; then |
# Run create_nmf for non-scripts. |
# TODO(bradnelson): Do something prettier. |
- if [ "$(head -c 2 ${nexe})" != "#!" ]; then |
+ if [[ "${nexe}" != *.so && "$(head -c 1 ${nexe})" != "#" ]]; then |
pushd ${ARCH_DIR} |
# Create a temporary name ending in .nexe so create_nmf does the right |
# thing. |