Update shellMen
This commit is contained in:
parent
bb2b6a705b
commit
3b6264661f
62
shellMen
62
shellMen
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# By Maxim F. Stewart
|
# By Maxim F. Stewart
|
||||||
# Contact: [maxim2131@gmail.com] OR [gamer1119@gmail.com]
|
# Contact: [1itdominator@gmail.com]
|
||||||
#
|
#
|
||||||
# Copyright 2013 Maxim F. Stewart
|
# Copyright 2013 Maxim F. Stewart
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
@ -67,11 +67,11 @@ while [ $i -le $x ]; do
|
||||||
execCMD=$(echo "${filename}) exec ${filename} ;;")
|
execCMD=$(echo "${filename}) exec ${filename} ;;")
|
||||||
|
|
||||||
if [[ "$catagory" == *"${menu[0]}"* ]] || [[ "$catagory" == *"${menu[1]}"* ]]; then
|
if [[ "$catagory" == *"${menu[0]}"* ]] || [[ "$catagory" == *"${menu[1]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[0]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[0]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[2]}"* ]] \
|
elif [[ "$catagory" == *"${menu[2]}"* ]] \
|
||||||
|| [[ "$catagory" == *"${menu[3]}"* ]] \
|
|| [[ "$catagory" == *"${menu[3]}"* ]] \
|
||||||
|| [[ "$catagory" == *"${menu[4]}"* ]]; then
|
|| [[ "$catagory" == *"${menu[4]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[2]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[2]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[5]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[5]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[5]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[5]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[6]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[6]}"* ]]; then
|
||||||
|
@ -79,15 +79,15 @@ while [ $i -le $x ]; do
|
||||||
elif [[ "$catagory" == *"${menu[7]}"* ]] || [[ "$catagory" == *"${menu[8]}"* ]] ; then
|
elif [[ "$catagory" == *"${menu[7]}"* ]] || [[ "$catagory" == *"${menu[8]}"* ]] ; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[7]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[7]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[9]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[9]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[8]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[8]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[10]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[10]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[10]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[10]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[11]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[11]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[11]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[11]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[12]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[12]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[12]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[12]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[13]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[13]}"* ]]; then
|
||||||
echo "$execCMD" >> /tmp/sysMENU/"${menu[13]}".sh
|
echo "$execCMD" >> /tmp/sysMENU/"${menu[13]}".sh
|
||||||
fi
|
fi
|
||||||
i=$[$i++1];
|
i=$[$i++1];
|
||||||
done
|
done
|
||||||
|
@ -121,27 +121,27 @@ while [ $i -le $x ]; do
|
||||||
inputer=$(echo "$filename "\"$comment"\" \\")
|
inputer=$(echo "$filename "\"$comment"\" \\")
|
||||||
|
|
||||||
if [[ "$catagory" == *"${menu[0]}"* ]] || [[ "$catagory" == *"${menu[1]}"* ]]; then
|
if [[ "$catagory" == *"${menu[0]}"* ]] || [[ "$catagory" == *"${menu[1]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[0]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[0]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[2]}*" ]] \
|
elif [[ "$catagory" == *"${menu[2]}*" ]] \
|
||||||
|| [[ "$catagory" == *"${menu[3]}"* ]] \
|
|| [[ "$catagory" == *"${menu[3]}"* ]] \
|
||||||
|| [[ "$catagory" == *"${menu[4]}"* ]]; then
|
|| [[ "$catagory" == *"${menu[4]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[2]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[2]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[5]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[5]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[5]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[5]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[6]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[6]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[6]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[6]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[7]}"* ]] || [[ "$catagory" == *"${menu[8]}"* ]] ; then
|
elif [[ "$catagory" == *"${menu[7]}"* ]] || [[ "$catagory" == *"${menu[8]}"* ]] ; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[7]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[7]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[9]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[9]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[9]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[9]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[10]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[10]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[10]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[10]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[11]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[11]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[11]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[11]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[12]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[12]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[12]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[12]}".sh
|
||||||
elif [[ "$catagory" == *"${menu[13]}"* ]]; then
|
elif [[ "$catagory" == *"${menu[13]}"* ]]; then
|
||||||
echo "$inputer" >> /tmp/sysMENU/"${menu[13]}".sh
|
echo "$inputer" >> /tmp/sysMENU/"${menu[13]}".sh
|
||||||
fi
|
fi
|
||||||
i=$[$i++1];
|
i=$[$i++1];
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue