File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ run_path() {
3535 while read -r script_file_path; do
3636 if ! [ -x " ${script_file_path} " ]; then
3737 echo " ==> The script \" ${script_file_path} \" was skipped, because it lacks the executable flag"
38- found=$(( found- 1 ))
3938 continue
4039 fi
4140
@@ -49,10 +48,10 @@ run_path() {
4948
5049 echo " ==> Finished executing the script: \" ${script_file_path} \" "
5150 done
52- if [ " $found " -lt " 1 " ]; then
53- echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
51+ if [ " $found " -gt " 0 " ]; then
52+ echo " => Completed executing scripts in the \" $1 \" folder"
5453 else
55- echo " => Completed executing scripts in the \" $1 \" folder"
54+ echo " ==> Skipped: the \" $1 \" folder does not contain any valid scripts "
5655 fi
5756 )
5857}
You can’t perform that action at this time.
0 commit comments