Skip to content

Commit 292713e

Browse files
committed
set license stamper default path to ./src/
1 parent 7f619e8 commit 292713e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

bin/license-stamper.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ process_path() {
3535
done
3636
}
3737

38-
# Loop over each argument
39-
for path in "$@"; do
40-
if [ -d "$path" ]; then
41-
process_path "$path"
42-
else
43-
echo "Warning: '$path' is not a directory. Skipping."
44-
fi
45-
done
46-
47-
# Check if any path is provided, otherwise use current directory
38+
# Check if any path is provided, otherwise use ./src/
4839
if [ $# -eq 0 ]; then
49-
process_path "."
40+
process_path "./src"
41+
else
42+
# Loop over each argument
43+
for path in "$@"; do
44+
if [ -d "$path" ]; then
45+
process_path "$path"
46+
else
47+
echo "Warning: '$path' is not a directory. Skipping."
48+
fi
49+
done
5050
fi

0 commit comments

Comments
 (0)