We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e34e38 commit 6f4a936Copy full SHA for 6f4a936
scripts/dev_scripts/samples_permissions_checker.sh
@@ -12,7 +12,7 @@ MACARON_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)"
12
SAMPLES_PATH="${MACARON_DIR}/tests/malware_analyzer/pypi/resources/sourcecode_samples"
13
14
# any files have any of the executable bits set
15
-executables=$(find "$SAMPLES_PATH" -type f -perm -u+x -o -type f -perm -g+x -o -type f -perm -o+x)
+executables=$( ( find "$SAMPLES_PATH" -type f -perm -u+x -o -type f -perm -g+x -o -type f -perm -o+x | sed "s|$MACARON_DIR/||"; git ls-files "$SAMPLES_PATH" --full-name) | sort | uniq -d)
16
if [ -n "$executables" ]; then
17
echo "The following files should not have any executable permissions:"
18
echo "$executables"
0 commit comments