From 8262c7e9072e2d01e1a4abaa2c8c0e7fa542d39f Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 28 Dec 2023 06:09:30 +0700 Subject: [PATCH] fix esm --- sudocleanssl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sudocleanssl.js b/sudocleanssl.js index 106cf3e..7489615 100644 --- a/sudocleanssl.js +++ b/sudocleanssl.js @@ -2,8 +2,8 @@ // stop renewing failed SSL certs if found -import shelljs, { ShellString, cat } from 'shelljs'; -const { exec } = shelljs; +import shelljs from 'shelljs'; +const { exec, ShellString, cat } = shelljs; // | DOMAIN NAME | PATH TO CERTIFICATE FILE | VALID UNTIL | EXPIRES IN | STATUS | const certsExpiryRegexp = /^\| (\S+)\s+\| (\/.+?)\s+\| (.+?)\s+\| (.*?)\s+\| (\S+)\s+\|$/gm;