Skip to content

Commit ab7d28b

Browse files
authored
Merge pull request #4482 from RasmusWL/promote-script
Approved by tausbn
2 parents 1b8d140 + 43cee85 commit ab7d28b

File tree

1 file changed

+13
-0
lines changed
  • python/ql/src/experimental/Security-new-dataflow

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -Eeuo pipefail # see https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
3+
4+
# Promotes new dataflow queries to be the real ones
5+
6+
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
7+
8+
cd $SCRIPTDIR
9+
for file in $(find . -mindepth 2); do
10+
echo "Promoting $file"
11+
mkdir -p "../../Security/$(dirname $file)"
12+
mv "$file" "../../Security/${file}"
13+
done

0 commit comments

Comments
 (0)