Skip to content

Commit 1f20246

Browse files
Ignore path that does not exist
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent 23e9014 commit 1f20246

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

linuxdeploy-plugin-gstreamer.sh

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ mkdir -p "$plugins_target_dir"
9696
echo "Copying plugins into $plugins_target_dir"
9797
for i in "$plugins_dir"/*; do
9898
[ -d "$i" ] && continue
99+
[ ! -f "$i" ] && echo "File does not exist: $i" && continue
99100

100101
echo "Copying plugin: $i"
101102
cp "$i" "$plugins_target_dir"
@@ -105,6 +106,7 @@ done
105106

106107
for i in "$plugins_target_dir"/*; do
107108
[ -d "$i" ] && continue
109+
[ ! -f "$i" ] && echo "File does not exist: $i" && continue
108110

109111
echo "Manually setting rpath for $i"
110112
patchelf --set-rpath '$ORIGIN/..:$ORIGIN' "$i"
@@ -115,13 +117,15 @@ mkdir -p "$helpers_target_dir"
115117
echo "Copying helpers in $helpers_target_dir"
116118
for i in "$helpers_dir"/*; do
117119
[ -d "$i" ] && continue
120+
[ ! -f "$i" ] && echo "File does not exist: $i" && continue
118121

119122
echo "Copying helper: $i"
120123
cp "$i" "$helpers_target_dir"
121124
done
122125

123126
for i in "$helpers_target_dir"/*; do
124127
[ -d "$i" ] && continue
128+
[ ! -f "$i" ] && echo "File does not exist: $i" && continue
125129

126130
echo "Manually setting rpath for $i"
127131
patchelf --set-rpath '$ORIGIN/../..' "$i"

0 commit comments

Comments
 (0)