diff --git a/src/freedombone-utils-flasher b/src/freedombone-utils-flasher
index 41d2a11e5d1dc610fe26cd4ff3435f0c9d7247f4..60f12e7f8c2f07b489a974fa58795191b15d7f41 100755
--- a/src/freedombone-utils-flasher
+++ b/src/freedombone-utils-flasher
@@ -51,7 +51,7 @@ function beaglebone_flasher {
     fi
 
     if [ ! -d "$rootdir$EMMC_DIR" ]; then
-        mkdir -p "$$rootdirEMMC_DIR"
+        mkdir -p "$rootdir$EMMC_DIR"
     fi
 
     # shellcheck disable=SC2086