T
Termuxโ€ข6mo ago
LMR

How do I fix this mistake error

@๐žฝ๐Ÿ‚๐žช๐žฒ๐žณ When i execute my own bin files, I get this happened mistake error. Here the my own bin files (Not sharing my own bin files to other user, It's results before execute):
#!${PREFIX}/bin/bash
Y="$(printf '\033[1;33m')"
G="$(printf '\033[1;32m')"
R="$(printf '\033[1;31m')"

# Input questions
clear
function input_questions() {
read -p "Enter your directory: " my_dir

}

# Checking the directory
function check_directory_message() {
echo -e "${Y} Checking directory......."

}

function complete_check_directory_message() {
echo -e "${G} Your directory has existed."

}

function error_check_directory_message() {
echo -e "${R} Your directory has ain't existed"

}

function check_directory() {
check_directory_message
echo -ne '##### (33%)\r'
sleep 1
echo -ne '############# (66%)\r'
sleep 1
echo -ne '####################### (100%)\r'
echo -ne '\n'
clear
if (( `command -f ${my_dir}` )); then
complete_directory_message
else
error_directory_message
fi
sleep 3
clear

}

# Listing directory
function error_directory_message() {
if (( `command -v figlet` )); then
figlet "${R} [ERROR]"
elif (( `command -v cowsay` )); then
cowsay "${R} [ERROR]"
else
echo -e "${R} [ERROR]"
fi

}

function list_directory() {
if (( `command -v tree` )); then
tree ${my_dir}
elif (( `command -v dir` )); then
dir ${my_dir}
elif (( `command -v ls` )); then
ls -a ${my_dir}
else
error_directory_message
fi

}

# Function collection

function function_collection() {
input_questions
check_directory
list_directory

}

function_collection
#!${PREFIX}/bin/bash
Y="$(printf '\033[1;33m')"
G="$(printf '\033[1;32m')"
R="$(printf '\033[1;31m')"

# Input questions
clear
function input_questions() {
read -p "Enter your directory: " my_dir

}

# Checking the directory
function check_directory_message() {
echo -e "${Y} Checking directory......."

}

function complete_check_directory_message() {
echo -e "${G} Your directory has existed."

}

function error_check_directory_message() {
echo -e "${R} Your directory has ain't existed"

}

function check_directory() {
check_directory_message
echo -ne '##### (33%)\r'
sleep 1
echo -ne '############# (66%)\r'
sleep 1
echo -ne '####################### (100%)\r'
echo -ne '\n'
clear
if (( `command -f ${my_dir}` )); then
complete_directory_message
else
error_directory_message
fi
sleep 3
clear

}

# Listing directory
function error_directory_message() {
if (( `command -v figlet` )); then
figlet "${R} [ERROR]"
elif (( `command -v cowsay` )); then
cowsay "${R} [ERROR]"
else
echo -e "${R} [ERROR]"
fi

}

function list_directory() {
if (( `command -v tree` )); then
tree ${my_dir}
elif (( `command -v dir` )); then
dir ${my_dir}
elif (( `command -v ls` )); then
ls -a ${my_dir}
else
error_directory_message
fi

}

# Function collection

function function_collection() {
input_questions
check_directory
list_directory

}

function_collection
Carefully send me your mistakenly solution idea. ๐Ÿ‘€
No description
10 Replies
twaik
twaikโ€ข6mo ago
1. Do not ping maintainers please. 2. AFAIK You can not use environment variables in shebang. Put the whole path to bash. 3. I do not see nala mentions in the script. I have no idea where you got this and what it needs.
LMR
LMROPโ€ข6mo ago
For your 3. step, Just install nala by this command:
apt install nala -y
apt install nala -y
komo
komoโ€ข6mo ago
what are you trying to do exactly
LMR
LMROPโ€ข6mo ago
I can replaced my apt with my nala, But this could install Python/Python3 and Python PIP, When you install nala by his command, Be mistakenly careful to use nala. ๐Ÿ‘€
LMR
LMROPโ€ข6mo ago
Mistakenly carefully trying execute my own bin files against nala mention.
LMR
LMROPโ€ข6mo ago
GitHub
[Bug]: How do I fix this mistake error (Github version) ยท Issue #4...
Problem description <@722419788034474004> When i execute my own bin files, I get this happened mistake error. Here the my own bin files (Not sharing my own bin files to other user, It's r...
komo
komoโ€ข6mo ago
then i'm going to close this, as it's already in Github issues
twaik
twaikโ€ข6mo ago
I closed github issue because there is post in discord. And pretty sure it is a skill issue.
komo
komoโ€ข6mo ago
rather misunderstanding
Want results from more Discord servers?
Add your server