Skip to content

Commit 178aef3

Browse files
authored
Update example.hacker
1 parent f7a485e commit 178aef3

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

example/example.hacker

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
! Example Hacker Lang script
2-
// sudo ! For privileged commands
3-
// apt ! Package manager
4-
@USER=admin ! Set USER
5-
@LOG_DIR=/var/log/hacker
6-
=3 > echo "Run by $USER" ! Loop 3 times
7-
? [ -d /tmp ] > echo "Temp exists" ! Conditional
8-
# util ! Include util library
9-
> sudo apt update ! Update packages
10-
> mkdir -p $LOG_DIR
11-
> echo "Updated at $(date)" >> $LOG_DIR/update.log
12-
[
13-
Configuration
14-
Author: HackerOS Team
15-
Purpose: System update
16-
]
1+
// sudo
2+
// apt
3+
> sudo apt update
4+
> echo "Update Done"

0 commit comments

Comments
 (0)