feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
FILES_CHANGED_STR=`git diff --name-only $1@{1} $1`
FILES_CHANGED=${FILES_CHANGED_STR}
declare -A DIRS_SET
for FILE in $FILES_CHANGED ; do
DIR=`echo $FILE | cut -d "/" -f1`
if test "${DIRS_SET[${DIR}]+isset}"
then
continue
else
echo $DIR
fi
DIRS_SET[${DIR}]=""
done