Redirect stderr output to /dev/null so the script runs silently

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
Nic0Nic0Nii 3 years ago
parent 43a188ccf8
commit 874136780f
  1. 2
      utils/main.sh
  2. 4
      utils/md5
  3. 4
      utils/search.sh

@ -13,7 +13,7 @@ if [ -z "$1" ]
echo "" echo ""
echo "" echo ""
echo " Command List:" echo " Command List:"
FILES=$(ls -1A ./$LANGUAGE/scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /') FILES=$(ls -1A ./$LANGUAGE/scripts 2>/dev/null | sed -e 's/\.sh$//' | sed -e 's/^/ /')
for f in $FILES for f in $FILES
do do
if [ $f != "md5" ] && [ $f != "version_info" ] && [ $f != "filelist" ]; then if [ $f != "md5" ] && [ $f != "version_info" ] && [ $f != "filelist" ]; then

@ -1,4 +1,4 @@
define.sh:883c4033be11b6d1268b852beada5463 - define.sh:883c4033be11b6d1268b852beada5463 -
main.sh:663ac9bb9ee46eb8cd1d717e8eb5e486 - main.sh:afdc55cbdd992bf2a7e21ed79a773d8f -
search.sh:2a471ffc3daa12f96157e613873f589d - search.sh:248d94cca6eeb92c384e9c49c9d0f4a9 -
.updateDirectories:0ede00461e947494545e694040787b3f - .updateDirectories:0ede00461e947494545e694040787b3f -

@ -1,5 +1,5 @@
function search() { function search() {
FILES2=$(ls -A $1) FILES2=$(ls -A $1 2>/dev/null)
for g in $FILES2 for g in $FILES2
do do
if [ -d $1$g ]; if [ -d $1$g ];
@ -23,7 +23,7 @@ function search() {
function check() { function check() {
echo "Check $1" echo "Check $1"
FILES2=$(ls -A $1) FILES2=$(ls -A $1 2>/dev/null)
if [ -f "$1/md5" ]; if [ -f "$1/md5" ];
then then
echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5" echo " md5: https://raw.githubusercontent.com/sigonasr2/SigScript/main/$1md5"

Loading…
Cancel
Save