summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-10-28 16:30:02 +0300
committerkx <kx@radix.pro>2023-10-28 16:30:02 +0300
commit555b9458002fcb47af0f95dc6c1d4fb8773d4431 (patch)
treefed70495ef8c50708461cd4cb26ab71ab2b9626f /scripts
parentdb52e5179dffeb7dc835a4bef1788a839ab8e615 (diff)
downloadlinux-orangepi-5.10.y-555b9458002fcb47af0f95dc6c1d4fb8773d4431.tar.xz
Remove rockchip git callsHEADtrunk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/setlocalversion3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index ae1de3c47..df4c3af5b 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -53,6 +53,9 @@ scm_version()
short=false
cd "$srctree"
+ if [ ! -e .git ] ; then
+ return
+ fi
if test -e .scmversion; then
cat .scmversion
return