Skip to contentSkip to conversation

compat-wireless: fix directory copying in admin-update.sh

PATCH Applied Felix Fietkau 2 participants 2 messages Feb 27, 2012 – Feb 28, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-wireless: fix directory copying in admin-update.sh

On my system the trailing slash leads to the directory contents being copied to the target instead of the full directory, which results in breakage during build.

---
 scripts/admin-update.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/admin-update.sh +2 -2
index 369cc96..34022b7 100755
@@ -425,8 +425,8 @@ mkdir -p $COMPAT
 echo "Copying $GIT_COMPAT_TREE/ files..."
 cp $GIT_COMPAT_TREE/compat/*.c $COMPAT/
 cp $GIT_COMPAT_TREE/compat/Makefile $COMPAT/
-cp -a $GIT_COMPAT_TREE/udev/ .
-cp -a $GIT_COMPAT_TREE/scripts/ $COMPAT/
+cp -a $GIT_COMPAT_TREE/udev .
+cp -a $GIT_COMPAT_TREE/scripts $COMPAT/
 cp -a $GIT_COMPAT_TREE/include/linux/* include/linux/
 cp -a $GIT_COMPAT_TREE/include/net/* include/net/
 cp -a $GIT_COMPAT_TREE/include/trace/* include/trace/
Signature · 1 line
1.7.3.2
#1 lore raw
Quoted 5 lines · Felix Fietkau

On my system the trailing slash leads to the directory contents being copied to the target instead of the full directory, which results in breakage during build.

thanks applied and pushed!

Luis