]> git.corax.cc Git - toolbox/commitdiff
include/inst: Add log module to dependencies
authorMatthias Kruk <m@m10k.eu>
Wed, 4 Jan 2023 03:10:54 +0000 (12:10 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 4 Jan 2023 03:15:03 +0000 (12:15 +0900)
The inst module uses functions from the log module without including
the module.

This commit changes the constructor of the inst module so that the
log module is included directly.

include/inst.sh

index e5d51e2062384d8b12c947b9bebf5a5b16f20216..872debc696d23f3fba6c31c6c394dda7c0a423fb 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # inst.sh - Toolbox module for daemonized scripts
-# Copyright (C) 2021-2022 Matthias Kruk
+# Copyright (C) 2021-2023 Matthias Kruk
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ __init() {
                return 1
        fi
 
-       if ! include "opt" "sem"; then
+       if ! include "log" "opt" "sem"; then
                return 1
        fi