Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Global arguments of find command should be set first #1393

Merged
merged 30 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
eedffa1
Update UpdateManager.java
alfeilex May 22, 2023
0d5e70b
Update UpdateManager.java
alfeilex May 22, 2023
6ed4f76
Merge branch 'devonfw:master' into master
alfeilex May 24, 2023
87c9522
Merge branch 'devonfw:master' into master
alfeilex May 29, 2023
6c887cf
Merge branch 'devonfw:master' into master
alfeilex Jun 7, 2023
e195b21
Merge branch 'devonfw:master' into master
alfeilex Jun 20, 2023
35208f7
Merge branch 'devonfw:master' into master
alfeilex Jun 21, 2023
8df1622
Merge branch 'devonfw:master' into master
alfeilex Jun 23, 2023
b34d4fc
Merge branch 'devonfw:master' into master
alfeilex Jun 26, 2023
fe2bc12
Merge branch 'devonfw:master' into master
alfeilex Jun 28, 2023
0dee82d
Merge branch 'devonfw:master' into master
alfeilex Jul 5, 2023
7e8b484
Merge branch 'devonfw:master' into master
alfeilex Jul 6, 2023
09dc271
Merge branch 'devonfw:master' into master
alfeilex Jul 6, 2023
38054d1
Merge branch 'devonfw:master' into master
alfeilex Jul 12, 2023
1ed830e
Merge branch 'devonfw:master' into master
alfeilex Jul 14, 2023
6905942
Merge branch 'devonfw:master' into master
alfeilex Jul 18, 2023
ca3946d
Merge branch 'devonfw:master' into master
alfeilex Jul 21, 2023
3fec010
Merge branch 'devonfw:master' into master
alfeilex Jul 25, 2023
917ca92
Merge branch 'devonfw:master' into master
alfeilex Jul 28, 2023
0e2687c
Merge branch 'devonfw:master' into master
alfeilex Aug 4, 2023
23f2f6a
Merge branch 'devonfw:master' into master
alfeilex Aug 7, 2023
e4c6f6b
Merge branch 'devonfw:master' into master
alfeilex Aug 10, 2023
ea7979c
Merge branch 'devonfw:master' into master
alfeilex Aug 10, 2023
8e15168
Merge branch 'devonfw:master' into master
alfeilex Aug 15, 2023
46c6331
Merge branch 'devonfw:master' into master
alfeilex Aug 31, 2023
768647c
Merge branch 'devonfw:master' into master
alfeilex Sep 5, 2023
d2c5eb5
Merge branch 'devonfw:master' into master
alfeilex Sep 13, 2023
0578857
Merge branch 'devonfw:master' into master
alfeilex Nov 30, 2023
e5a32ad
Merge branch 'devonfw:master' into master
alfeilex Nov 13, 2024
2b0e1e8
fix find command argument order
alfeilex Nov 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1904,11 +1904,11 @@ function doGetAnyLatestSoftwareVersion() {
edition=$(doGetSoftwareEdition "${software}")
if [ -z "${prefix}" ]
then
version="$(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -type d -mindepth 1 -maxdepth 1 -print | awk -F'/' '{print $NF}' | sort -rV | head -1)"
version="$(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -mindepth 1 -maxdepth 1 -type d -print | awk -F'/' '{print $NF}' | sort -rV | head -1)"
else
prefix="${prefix:0:${#prefix}-2}" # 2 for "*!"
prefix="${prefix/./[.]}"
version="$(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -type d -mindepth 1 -maxdepth 1 -print | awk -F'/' '{print $NF}' | grep "^${prefix}" | sort -rV | head -1)"
version="$(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -mindepth 1 -maxdepth 1 -type d -print | awk -F'/' '{print $NF}' | grep "^${prefix}" | sort -rV | head -1)"
fi
echo "${version}"
}
Expand All @@ -1926,14 +1926,14 @@ function doGetLatestSoftwareVersion() {
versions=()
while IFS= read -r line; do
versions+=("${line}")
done < <(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -type d -mindepth 1 -maxdepth 1 -print | awk -F'/' '{print $NF}' | sort -rV)
done < <(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -mindepth 1 -maxdepth 1 -type d -print | awk -F'/' '{print $NF}' | sort -rV)
else
prefix="${prefix:0:${#prefix}-1}" # 1 for "*"
prefix="${prefix/./[.]}"
versions=()
while IFS= read -r line; do
versions+=("${line}")
done < <(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -type d -mindepth 1 -maxdepth 1 -print | awk -F'/' '{print $NF}' | grep "^${prefix}" | sort -rV)
done < <(find "${DEVON_IDE_HOME}"/urls/"${software}"/"${edition}" -mindepth 1 -maxdepth 1 -type d -print | awk -F'/' '{print $NF}' | grep "^${prefix}" | sort -rV)
fi

# version is not considered stable (see IDEasy VersionSegment) if:
Expand Down
Loading