summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-04-19 12:25:08 +0200
committerRemi Collet <remi@php.net>2024-04-19 12:25:08 +0200
commit1249a977bbfd9a7a7c741040ba4c991ac0718fd2 (patch)
tree8eb739daf9dadaa4d90b84987f1b71b7732e4072
parent5e04aa10c25c47f6d0e8210cf432a3dd4d2dad34 (diff)
mockit: make relative path absolute
-rwxr-xr-xmockit2
1 files changed, 2 insertions, 0 deletions
diff --git a/mockit b/mockit
index cce9f13..6c855a2 100755
--- a/mockit
+++ b/mockit
@@ -54,6 +54,8 @@ esac
if [ -f $srpmdir/$SRPM ]; then
SRPM=$srpmdir/$SRPM
+elif [ -f $PWD/$SRPM ]; then
+ SRPM=$PWD/$SRPM
elif [ ! -f $SRPM ]; then
echo "file not found '$SRPM'"
exit 1