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):
Carefully send me your mistakenly solution idea.
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_collectionCarefully send me your mistakenly solution idea.

