mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
Check permissions on scripts in plugins' bin directories when testing them.
This commit is contained in:
parent
855dd3bcf1
commit
dff1149fb5
@ -62,5 +62,13 @@ plugin_test_command() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Assert the scripts in bin are executable by asdf
|
||||
for filename in $ASDF_DIR/plugins/$plugin_name/bin/*
|
||||
do
|
||||
if [ ! -x "$filename" ]; then
|
||||
fail_test "Incorrect permissions on $filename. Must be executable by asdf"
|
||||
fi
|
||||
done
|
||||
|
||||
rm -rf $ASDF_DIR
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user