From 104220d983be42b949d7520acbf7abb45fe9cf14 Mon Sep 17 00:00:00 2001 From: Guanpeng Xu Date: Thu, 4 Jan 2024 01:25:29 -0800 Subject: [PATCH] yourkit-java: restore `CONFIG_DIR` --- .../tools/yourkit-java/forbid-desktop-item-creation | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 <