diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/system-upgrade | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/.local/bin/system-upgrade b/.local/bin/system-upgrade index b726f5b..3a53334 100755 --- a/.local/bin/system-upgrade +++ b/.local/bin/system-upgrade @@ -2,4 +2,22 @@ use warnings; use strict; -use constant LOG_FILE => "/var/log/system-upgrade.log"; +use constant LOG_FILE => '/var/log/system-upgrade.log'; +use constant { + DASH_PATH => '/usr/local/bin/dash', +}; + +sub shell { + system( + DASH_PATH, + '-c', + $_[0] + ); +} + +sub main { + shell("ls -l"); + exit; +} + +main(); |