This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/CI/DetectDirectoryChanges

21 lines
313 B
Bash

#!/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