bump version to 1.0.26

This commit is contained in:
Mahmoud-Emad
2025-06-17 09:51:38 +03:00
parent f769c34466
commit 483b6e3de3
2 changed files with 11 additions and 12 deletions

View File

@@ -19,25 +19,24 @@ fn playcmds_do(path string) ! {
}
fn do() ! {
if ! core.is_osx()! {
if !core.is_osx()! {
if os.getenv('SUDO_COMMAND') != '' || os.getenv('SUDO_USER') != '' {
println('Error: Please do not run this program with sudo!')
exit(1) // Exit with error code
exit(1) // Exit with error code
}
}
if os.getuid() == 0 {
if core.is_osx()! {
eprintln("please do not run hero as root in osx.")
if os.getuid() == 0 {
if core.is_osx()! {
eprintln('please do not run hero as root in osx.')
exit(1)
}
} else {
if ! core.is_osx()! {
} else {
if !core.is_osx()! {
eprintln("please do run hero as root, don't use sudo.")
exit(1)
}
}
}
if os.args.len == 2 {
mypath := os.args[1]
@@ -51,7 +50,7 @@ fn do() ! {
mut cmd := Command{
name: 'hero'
description: 'Your HERO toolset.'
version: '1.0.25'
version: '1.0.26'
}
// herocmds.cmd_run_add_flags(mut cmd)
@@ -115,4 +114,4 @@ fn main() {
fn pre_func(cmd Command) ! {
herocmds.plbook_run(cmd)!
}
}

View File

@@ -4,7 +4,7 @@ set -e
os_name="$(uname -s)"
arch_name="$(uname -m)"
version='1.0.25'
version='1.0.26'
# Base URL for GitHub releases