summaryrefslogtreecommitdiff
path: root/doRdate.go
diff options
context:
space:
mode:
Diffstat (limited to 'doRdate.go')
-rw-r--r--doRdate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doRdate.go b/doRdate.go
index ac66119..a33b022 100644
--- a/doRdate.go
+++ b/doRdate.go
@@ -9,11 +9,11 @@ func doRdate() {
checkSuperuser()
if _, err := fhelp.CheckCmd("rdate"); err != nil {
- exitOnError([]string{"apt", "install", "rdate"})
+ aptInstall("rdate")
}
if _, err := fhelp.CheckCmd("hwclock"); err != nil {
- exitOnError([]string{"apt", "install", "util-linux-extra"})
+ aptInstall("util-linux-extra")
}
exitOnError([]string{"rdate", "rdate.grid.wit.com"})