scripts/ipkg-build: fix a build regression introduced in r46360 (fixes #20082)
go to the $TOPDIR directory before trying to extract a git/svn timestamp Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46383
This commit is contained in:
parent
b04b1ca933
commit
7f359e52ce
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ export GZIP="-n"
|
||||||
|
|
||||||
# look up date of last commit
|
# look up date of last commit
|
||||||
if [ -d "$TOPDIR/.git" ]; then
|
if [ -d "$TOPDIR/.git" ]; then
|
||||||
TIMESTAMP=$($GIT log -1 -s --format=%ci)
|
TIMESTAMP=$(cd $TOPDIR; $GIT log -1 -s --format=%ci)
|
||||||
elif [ -d "$TOPDIR/.svn" ]; then
|
elif [ -d "$TOPDIR/.svn" ]; then
|
||||||
TIMESTAMP=$($SVN info "$TOPDIR" | sed -n "s/^Last Changed Date: \(.*\)/\1/p")
|
TIMESTAMP=$($SVN info "$TOPDIR" | sed -n "s/^Last Changed Date: \(.*\)/\1/p")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue