diff --git a/dim b/dim index 143daca2ac746488ae489f0caab66fafa8d98d45..0b8416f292737fe0a01f0b62afdaf6a32196cd15 100755 --- a/dim +++ b/dim @@ -356,10 +356,6 @@ function setup_dim { cd $DIM_PREFIX - if [ ! -d $DIM_DRM_INTEL ]; then - echo "please set up $DIM_PREFIX/$DIM_DRM_INTEL (or update config)" - exit 1 - fi cd $DIM_DRM_INTEL if ! git remote -v | grep "^origin[[:space:]]" | grep $linux_upstream_git > /dev/null; then echo "please set up remote origin for $linux_upstream_git" @@ -433,6 +429,12 @@ function assert_branch } +if [ ! -d $DIM_PREFIX/$DIM_DRM_INTEL ]; then + echo "please set up your maintainer linux repository at" + echo "$DIM_PREFIX/$DIM_DRM_INTEL (or check your config)" + exit 1 +fi + cd $DIM_PREFIX/$DIM_DRM_INTEL case "$subcommand" in