diff --git a/stpkg b/stpkg
index 33198ecf40bfa2424dc3ab41b263e6e35fede671..ce0f4125c1619066beb7279e05031d2c414bf2c6 100755
--- a/stpkg
+++ b/stpkg
@@ -328,7 +328,7 @@ if [ "x$1" = "x-install" ]; then
     [ "x$STPKG_NO_MSG" = "xyes" ] \
         && echo "!!! STPKG_NO_MSG is turn on, you won't see what's going on during the install"
     shift
-    REPO_DIR="$(dirname SELF)"
+    REPO_DIR="$(dirname $SELF)"
     [ "$REPO_DIR" = "$BASE_DIR" ] || die \
         "You must run this script from the root of the sticker repo." \
         "You are in '$BASE_DIR' and should be in '$REPO_DIR'"