diff options
Diffstat (limited to 'scripts/reloc.sh')
-rwxr-xr-x | scripts/reloc.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/reloc.sh b/scripts/reloc.sh index 59323612f..f7a0a1e3b 100755 --- a/scripts/reloc.sh +++ b/scripts/reloc.sh @@ -1,11 +1,10 @@ #!/usr/bin/env bash # execute this after relocation of adk directory -olddir=$(grep "^TOPDIR" prereq.mk 2>/dev/null |cut -d '=' -f 2) +olddir=$(grep "^TOPDIR" prereq.mk |cut -d '=' -f 2) newdir=$(pwd) -if [ ! -z $olddir ];then - if [ "$olddir" != "$newdir" ];then +if [ "$olddir" != "$newdir" ];then echo "adk directory relocated!" echo "old directory: $olddir" echo "new directory: $newdir" @@ -14,5 +13,4 @@ if [ ! -z $olddir ];then sed -i -e "s#$olddir#$newdir#g" $(find target_*/scripts -type f|xargs) sed -i -e "s#$olddir#$newdir#" target_*/etc/ipkg.conf sed -i -e "s#$olddir#$newdir#" prereq.mk - fi fi |