projects
/
drupal-init-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian/{compat,control}: bump debhelper compatibility to 11
[drupal-init-tools.git]
/
libexec
/
create-profile.sh
diff --git
a/libexec/create-profile.sh
b/libexec/create-profile.sh
index
370963d
..
57e3731
100755
(executable)
--- a/
libexec/create-profile.sh
+++ b/
libexec/create-profile.sh
@@
-116,7
+116,10
@@
find . -maxdepth 1 -type f ! -name "*.info.yml" -printf "%P\n" |
cp "${original_file}" "$DESTINATION_FILE"
if file "$original_file" | grep -q PHP;
then
cp "${original_file}" "$DESTINATION_FILE"
if file "$original_file" | grep -q PHP;
then
- sed -i "s/^function ${CURRENT_PROFILE}_/function ${PROFILE_MACHINE_NAME}_/g" "$DESTINATION_FILE"
+ sed -i \
+ -e "s/^function ${CURRENT_PROFILE}_/function ${PROFILE_MACHINE_NAME}_/g" \
+ -e "s/\$form\['#submit'\]\[\] = '${CURRENT_PROFILE}_/\$form\['#submit'\]\[\] = '${PROFILE_MACHINE_NAME}_/g" \
+ "$DESTINATION_FILE"
fi
done
fi
done