diff --git a/pkgs/development/tools/yourkit-java/forbid-desktop-item-creation b/pkgs/development/tools/yourkit-java/forbid-desktop-item-creation index 4b5ba60c606b..df068b97d194 100644 --- a/pkgs/development/tools/yourkit-java/forbid-desktop-item-creation +++ b/pkgs/development/tools/yourkit-java/forbid-desktop-item-creation @@ -1,8 +1,9 @@ -if [ ! -d $YS ]; then - mkdir -p $YS +CONFIG_DIR=$YS/config +if [ ! -d $CONFIG_DIR ]; then + mkdir -p $CONFIG_DIR fi -REGISTRY=$YS/registry8.xml +REGISTRY=$CONFIG_DIR/registry8.xml if [ ! -e $REGISTRY ]; then cat >$REGISTRY <