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,8 +19,7 @@ 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
@@ -29,11 +28,11 @@ fn do() ! {
if os.getuid() == 0 {
if core.is_osx()! {
eprintln("please do not run hero as root in osx.")
eprintln('please do not run hero as root in osx.')
exit(1)
}
} else {
if ! core.is_osx()! {
if !core.is_osx()! {
eprintln("please do run hero as root, don't use sudo.")
exit(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)

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