Files
composable_kernel/script/remove_exec_bit.sh
Robin Voetter f709bedcd6 fix interpreter path on remove_exec_bit script
/bin/bash does not need to exist on POSIX systems.
2025-10-27 14:46:03 +01:00

11 lines
352 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
# SPDX-License-Identifier: MIT
for file in $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(cpp|hpp|txt|inc)$'); do
if [ -x "$file" ]; then
chmod -x "$file"
echo "[remove-exec-bit] Removed executable bit from $file" >&2
fi
done