diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-22 12:30:39 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-22 12:30:39 +0200 |
commit | b6a32e65cd1aba143ac78e7928c848479d3b6b98 (patch) | |
tree | 4c0d6ce0361265ee989fdc24622aa1315cef3ccb /.local/bin/system-upgrade | |
parent | New script in progress to update FreeBSD things (diff) | |
download | dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.gz dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.bz2 dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.xz dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.tar.zst dotfiles-bsd-b6a32e65cd1aba143ac78e7928c848479d3b6b98.zip |
Upgrade in progress, added -l to ls alias
Diffstat (limited to '')
-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(); |