This commit is contained in:
TheiLLeniumStudios
2023-02-06 11:14:33 +00:00
parent 3cea21eb61
commit de6de82aed
+4 -3
View File
@@ -1,5 +1,7 @@
#!/bin/sh -l #!/bin/sh -l
beginswith() { case $2 in "$1"*) true;; *) false;; esac; }
RESTART_INDIVIDUAL_RESOURCES=$1 RESTART_INDIVIDUAL_RESOURCES=$1
if [ "$RESTART_INDIVIDUAL_RESOURCES" = true ] ; then if [ "$RESTART_INDIVIDUAL_RESOURCES" = true ] ; then
@@ -34,9 +36,8 @@ else
fi fi
echo "${DIFF}" | while read -r changed; do echo "${DIFF}" | while read -r changed; do
echo $changed; echo $changed
if [[ ${changed} == ${RESOURCES_FOLDER}* ]] ; if beginswith ${RESOURCES_FOLDER} "${changed}"; then
then
echo "In the resources folder" echo "In the resources folder"
else else
echo "No in resources" echo "No in resources"