]> git.corax.cc Git - toolbox-goodies/commitdiff
include/ssh: Fix invalid function reference
authorMatthias Kruk <matthias.kruk@miraclelinux.com>
Tue, 20 Jul 2021 01:23:07 +0000 (10:23 +0900)
committerMatthias Kruk <matthias.kruk@miraclelinux.com>
Tue, 20 Jul 2021 01:23:07 +0000 (10:23 +0900)
The ssh module makes a call to error() in order to log an error message,
however that function does not exist (anymore).
This commit changes the call to reference log_error() instead.

include/ssh.sh

index 39e5ba217b0524f52a83ef87b242fd7cf4455baa..148ad5fe6e68134325a6beb86ed2978882f01907 100755 (executable)
@@ -28,7 +28,7 @@ __init() {
 
 _ssh_get_socket_dir() {
        if ! mkdir -p "$__ssh_socket_dir" &> /dev/null; then
-               error "Could not create $__ssh_socket_dir"
+               log_error "Could not create $__ssh_socket_dir"
                return 1
        fi