mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-12-23 22:47:57 -05:00
Fix: improvement to handle dirs with spaces
This commit is contained in:
@@ -3,9 +3,10 @@
|
|||||||
# Compute 'src' path
|
# Compute 'src' path
|
||||||
SCRIPT_DIR=$(dirname "$0")
|
SCRIPT_DIR=$(dirname "$0")
|
||||||
REPO_DIR=$(readlink -f "$SCRIPT_DIR"/..)
|
REPO_DIR=$(readlink -f "$SCRIPT_DIR"/..)
|
||||||
DIRS="$REPO_DIR/src $REPO_DIR/include"
|
DIRS="src include"
|
||||||
|
|
||||||
# Apply formating to all *.cpp and *.h files
|
# Apply formating to all *.cpp and *.h files
|
||||||
|
cd "$REPO_DIR"
|
||||||
for FILE in $(find $DIRS -name '*.h' -o -name '*.cpp')
|
for FILE in $(find $DIRS -name '*.h' -o -name '*.cpp')
|
||||||
do
|
do
|
||||||
echo $FILE
|
echo $FILE
|
||||||
|
|||||||
Reference in New Issue
Block a user