From 3d741a308adc9d4b0941fb8da055f01a6bc8ca4d Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 23 Oct 2023 19:01:40 +0000 Subject: [PATCH] Update basic_search_replace.yml Modified the call to --dry-run. Test mode will invoke a different bash script. TODO: Check conditional if statement on the button action Make the cli output as the success text --- basic_search_replace.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basic_search_replace.yml b/basic_search_replace.yml index b4a640a..16919b2 100644 --- a/basic_search_replace.yml +++ b/basic_search_replace.yml @@ -38,8 +38,10 @@ onInstall: rm master.zip mv Search-Replace-DB-master mightybox-search-replace-db wget --directory-prefix=/var/www/webroot/mightybox-search-replace-db https://deploy-proxy.mightybox.io/kits/search_and_replace_add-on/raw/branch/main/basic_search_replace.sh + wget --directory-prefix=/var/www/webroot/mightybox-search-replace-db https://deploy-proxy.mightybox.io/kits/search_and_replace_add-on/raw/branch/main/basic_search_replace-dry-run.sh cd /var/www/webroot//mightybox-search-replace-db chmod +x basic_search_replace.sh + chmod +x basic_search_replace-dry-run.sh touch searchreplace.log #user: root @@ -61,7 +63,7 @@ actions: if ( ${settings.testMode} == true ): cmd: |- cd /var/www/webroot/mightybox-search-replace-db/ - ./basic_search_replace.sh ${settings.termSearch} ${settings.termReplace} --dry-run + ./basic_search_replace-dry-run.sh ${settings.termSearch} ${settings.termReplace} buttons: