diff --git a/build-gcc4-optional-package-Haiku.sh b/build-gcc4-optional-package-Haiku.sh index 9b6895e2d7..115147ccf7 100755 --- a/build-gcc4-optional-package-Haiku.sh +++ b/build-gcc4-optional-package-Haiku.sh @@ -131,9 +131,9 @@ ln -s c++/$gccVersion $installDir/include/g++ # zip everything up -gccVersionYear=20$(echo $GCCDATE | cut -c1-2) -gccVersionMonth=$(echo $GCCDATE | cut -c3-4) -gccVersionDay=$(echo $GCCDATE | cut -c5-6) +gccVersionYear=20$(echo $gccDate | cut -c1-2) +gccVersionMonth=$(echo $gccDate | cut -c3-4) +gccVersionDay=$(echo $gccDate | cut -c5-6) packageFile="$currentDir/gcc-${gccVersion}-${gccArch}-gcc4-${gccVersionYear}-${gccVersionMonth}-${gccVersionDay}.zip" cd /boot