mirror of
https://github.com/arkenfox/user.js.git
synced 2025-04-22 00:19:28 -04:00
updater.sh support for directories with spaces
This commit is contained in:
parent
25f6c336a9
commit
31989ccb35
@ -279,12 +279,14 @@ add_override () {
|
||||
cat "$input" >> user.js
|
||||
echo -e "Status: ${GREEN}Override file appended:${NC} ${input}"
|
||||
elif [ -d "$input" ]; then
|
||||
FILES="${input}/*"
|
||||
FSAVEIFS=$IFS
|
||||
IFS=$(echo -en "\n\b") # Set IFS
|
||||
FILES="${input}"/*
|
||||
for f in $FILES
|
||||
do
|
||||
echo "$f"
|
||||
do
|
||||
add_override "$f"
|
||||
done
|
||||
IFS=$SAVEIFS # restore $IFS
|
||||
else
|
||||
echo -e "${ORANGE}Warning: Could not find override file:${NC} ${input}"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user