Skip to content

Instantly share code, notes, and snippets.

@melaniekung
melaniekung / arB5Plugin.sh
Last active May 2, 2025 23:00
arB5Plugin.sh
#!/bin/bash
# This script should be run on a new dev branch for B5 Plugin
# NOTE: Make sure to uncomment the right version of sed commands
# This script does the following:
# - Clones empty B5 plugin template
# - Updates the plugin config's summary
# - Creates empty _custom.scss and _variables.scss files
# - Copies header, footer, and homepage templates (unless excluded by flags)
function prodlog($message = "", $value = "")
{
$logFile = "./log/qubit_prod.log";
if ($value != null) {
$logMessage = $message.": ";
if (is_string($value)) {
count($value) > 0 ? $logMessage .= $value : $logMessage .= 'no value';
} elseif (is_bool($value)) {