Skip to content
Snippets Groups Projects
Commit dedfe9d1 authored by nbd's avatar nbd
Browse files

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: default avatarFelix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46383 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent b2d345e2
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ export GZIP="-n" ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment