Merge pull request #1938 from YunoHost/check-patches-dir

2.1 helpers: check if patches dir exists before getting realpath
This commit is contained in:
Alexandre Aubin 2024-08-29 00:27:13 +02:00 committed by GitHub
commit e3e8b903c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,8 +224,8 @@ ynh_setup_source() {
fi
# Apply patches
local patches_folder=$(realpath "$YNH_APP_BASEDIR/patches/$source_id")
if [ -d "$patches_folder" ]; then
if [ -d "$YNH_APP_BASEDIR/patches/" ]; then
local patches_folder=$(realpath "$YNH_APP_BASEDIR/patches/$source_id")
pushd "$dest_dir"
for patchfile in "$patches_folder/"*.patch; do
echo "Applying $patchfile"