mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-03 23:43:40 +02:00
updater.sh support for directories with spaces
This commit is contained in:
parent
25f6c336a9
commit
31989ccb35
1 changed files with 5 additions and 3 deletions
|
@ -279,12 +279,14 @@ add_override () {
|
||||||
cat "$input" >> user.js
|
cat "$input" >> user.js
|
||||||
echo -e "Status: ${GREEN}Override file appended:${NC} ${input}"
|
echo -e "Status: ${GREEN}Override file appended:${NC} ${input}"
|
||||||
elif [ -d "$input" ]; then
|
elif [ -d "$input" ]; then
|
||||||
FILES="${input}/*"
|
FSAVEIFS=$IFS
|
||||||
|
IFS=$(echo -en "\n\b") # Set IFS
|
||||||
|
FILES="${input}"/*
|
||||||
for f in $FILES
|
for f in $FILES
|
||||||
do
|
do
|
||||||
echo "$f"
|
|
||||||
add_override "$f"
|
add_override "$f"
|
||||||
done
|
done
|
||||||
|
IFS=$SAVEIFS # restore $IFS
|
||||||
else
|
else
|
||||||
echo -e "${ORANGE}Warning: Could not find override file:${NC} ${input}"
|
echo -e "${ORANGE}Warning: Could not find override file:${NC} ${input}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue