diff --git a/kubectl-image/_service b/kubectl-image/_service
index c5ed22b..2d99fa4 100644
--- a/kubectl-image/_service
+++ b/kubectl-image/_service
@@ -2,7 +2,7 @@
Dockerfile
- IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %img_prefix)
+ IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})
IMG_PREFIX
IMG_REPO=$(rpm --macros=/root/.rpmmacros -E %img_repo)
IMG_REPO