Skip to content

Commit

Permalink
check mes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydro3639 authored Dec 26, 2022
1 parent 086dabe commit e2dbbc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/nanophase.meta
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ fi

if [[ ! -s $OutDIR/.package.not.installed ]]; then
echo "All required packages have been found in the environment. If the above certain packages integrated into nanophase were used in your investigation, please give them credit as well :)"
path_check=`cat $OutDIR/.package.installed | awk '{printf "%-20s %s\n", $1,$2}' | awk '{print $2}' | while read path; do dirname $path; done | awk '!a[$1]++' | wc -l`
path_check=`cat $OutDIR/.package.installed | awk '{printf "%-20s %s\n", $1,$2}' | awk '{print $2}' | while read path; do dirname $path; done | awk '!a[$1]++' | wc -l`
if [[ $path_check -gt 1 ]]; then
env_name=`which nanophase | awk -F"/" '{print $(NF-2)}'`
not_in=`cat .package.installed | awk '{printf "%-20s %s\n", $1,$2}' | awk '{print $2}' | while read path; do dirname $path; done | grep -v "$env_name" | while read line; do grep -w $line .package.installed; done | awk '!a[$1]++ {print $1}' | tr '\n' ' ' | sed -e 's/ $//g'`
not_in=`cat $OutDIR/.package.installed | awk '{printf "%-20s %s\n", $1,$2}' | awk '{print $2}' | while read path; do dirname $path; done | grep -v "$env_name" | while read line; do grep -w $line .package.installed; done | awk '!a[$1]++ {print $1}' | tr '\n' ' ' | sed -e 's/ $//g'`
echo -e "Warning: [$not_in] has not been installed in the [${env_name}] env. Strongly recommend intalling all packages in the [${env_name}] env, or it may result in a failure\n"
rm -rf $OutDIR/.package.installed
else
Expand Down

0 comments on commit e2dbbc3

Please sign in to comment.