Skip to content

Commit

Permalink
Merge pull request #400 from mStirner/dev
Browse files Browse the repository at this point in the history
Working on issues
  • Loading branch information
mStirner authored Jan 8, 2024
2 parents 71bdafb + 27420db commit f2953ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions components/scenes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const COMPONENT = require("../../system/component/class.component.js");

const Scene = require("./class.scene.js");
const Makro = require("./class.makro.js");
const Trigger = require("./class.trigger.js");

/**
* @description
Expand Down Expand Up @@ -33,6 +34,13 @@ class C_SCENES extends COMPONENT {
}
});

// fix #390
data.triggers.forEach((trigger, i, arr) => {
if (!(trigger instanceof Trigger)) {
arr[i] = new Trigger(trigger);
}
});

next();

});
Expand Down
8 changes: 2 additions & 6 deletions scripts/post-install.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#!/bin/bash

pwd=$(pwd);

#echo $pwd/scripts/hooks/;
# rm -rf $pwd/.git/hooks
# https://rjzaworski.com/2018/01/keeping-git-hooks-in-sync
if [[ ! -d $pwd/.git/hooks ]]
then
ln -s $pwd/scripts/hooks/ $pwd/.git/
fi
rm -rf $(pwd)/.git/hooks
ln -s $(pwd)/scripts/hooks $(pwd)/.git/

0 comments on commit f2953ad

Please sign in to comment.