Skip to content

Commit 77ad4ff

Browse files
committed
Bugfix #3
Fixed bug when executing hooks, `true` was left in `if` clause from development.
1 parent d79d871 commit 77ad4ff

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 1.0.5 - Bugfix
4+
5+
- Fixed bug when running hooks (#3)
6+
37
### 1.0.4 - IPv6 docs, improved wizards
48

59
- Added instructions for IPv6 configuration

root/app/bin/run_hooks

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ for script in $OVPN_HOOKS/$1/*; do
4040
[ -e "$script" ] || continue
4141

4242
# Execute only executable files
43-
if [ -f "$script" ] || [ -x "$script" ] || true; then
43+
if [ -f "$script" ] && [ -x "$script" ]; then
4444
# Run script and pass additional args to hooks
45+
echo "Executing hook: $script"
4546
if [ $# -gt 2 ]; then
4647
$script ${@:2}
4748
else

0 commit comments

Comments
 (0)