Shell quoting in move_widevine_data.sh am: 63eae1f4a4

Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/13472583

Change-Id: I7bd550bbab9a725d70824b75d81072831c0a9ad3
This commit is contained in:
Ereth McKnight-MacNeil
2021-04-27 16:14:54 +00:00
committed by Automerger Merge Worker

View File

@@ -9,8 +9,8 @@ if [ ! -f "$FILES_MOVED" ]; then
for i in "$SRC_PATH/IDM"*; do
dest_path=$DEST_PATH/"${i#$SRC_PATH/}"
if [ -d "$i" ]; then
mkdir -p $dest_path -m 700
mv $i "$DEST_PATH"
mkdir -p "$dest_path" -m 700
mv "$i" "$DEST_PATH"
for file in ${dest_path}/${L3_FILE_PATTERN}; do
[ -e "${file}" ] || continue
# We need to move any L3 files in the IDM folder to the L3 subfolder.
@@ -18,7 +18,7 @@ if [ ! -f "$FILES_MOVED" ]; then
mkdir -p "${l3_dir}" -m 700
mv "${file}" "${l3_dir}"
done
find $dest_path -print0 | while IFS= read -r -d '' file
find "$dest_path" -print0 | while IFS= read -r -d '' file
do
chgrp media "$file"
done