Skip to content

Commit c0e6925

Browse files
refactor: reboot-tracker.ts → .mjs (TS types stripped) (#42)
Strips one TS type annotation and renames .ts → .mjs. Functionally identical Deno script. Updates reboot.sh + README references.
1 parent 80cbb5b commit c0e6925

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This repository contains scripts for:
100100
|`check-changes.sh`
101101
|Git status checker for CI/CD pipelines
102102

103-
|`reboot-tracker.ts`
103+
|`reboot-tracker.mjs`
104104
|Deno script to track system reboot reasons with journalctl/dmesg capture
105105
|===
106106

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// scripts/reboot-tracker.ts
1+
// scripts/reboot-tracker.mjs
22
import { join } from "https://deno.land/std@0.224.0/path/mod.ts";
33
import { parseArgs } from "https://deno.land/std@0.224.0/cli/parse_args.ts";
44

@@ -17,7 +17,7 @@ const BASE_DIR = "monitoring/reboot-tracker/logs";
1717
const LOG_FILE = join(BASE_DIR, "reboot-reasons.json");
1818
const SNAPSHOT_DIR = join(BASE_DIR, "snapshots");
1919

20-
async function captureLogs(timestamp: string): Promise<string | null> {
20+
async function captureLogs(timestamp) {
2121
const filename = `snapshot-${timestamp.replace(/[:.]/g, "-")}.log`;
2222
const filepath = join(SNAPSHOT_DIR, filename);
2323

reboot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# alias shutdown='bash /var$REPOS_DIR/scripts/reboot.sh --shutdown'
66

77
DENO_BIN="/home/hyper/.deno/bin/deno"
8-
TRACKER_TS="/var$REPOS_DIR/scripts/reboot-tracker.ts"
8+
TRACKER_TS="/var$REPOS_DIR/scripts/reboot-tracker.mjs"
99

1010
# Parse args
1111
IS_SHUTDOWN=false

0 commit comments

Comments
 (0)