Skip to content

Commit a46205a

Browse files
authored
Merge pull request #1977 from jakub-nt/CFE-4584
CFE-4584: Fixed shellcheck warning SC2044
2 parents a52718e + 218e271 commit a46205a

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

build-scripts/package

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,7 @@ rpm | lpp)
219219

220220
# Link all packaging files (except spec files) to SOURCES directory
221221
log_debug "Linking packaging files to SOURCES directory"
222-
# shellcheck disable=SC2044
223-
# TODO: CFE-4584
224-
for i in $(find "$BASEDIR/buildscripts/packaging/$PKG" ! -name "*.spec"); do
225-
(
226-
cd "$BASEDIR/$PKG/SOURCES"
227-
ln -sf "$i" .
228-
) || false
229-
done
222+
find "$BASEDIR/buildscripts/packaging/$PKG" ! -name "*.spec" -exec ln -sf {} "$BASEDIR/$PKG/SOURCES" \;
230223

231224
# Build the RPM package using rpmbuild
232225
# eval is needed to preserve spaces in arguments within quotes

0 commit comments

Comments
 (0)