Skip to content

Commit

Permalink
Fix: quiet python_module_remove.sh error (#2848)
Browse files Browse the repository at this point in the history
Silence the errors while attempting to uninstall all copies of the MDSplus python packages
  • Loading branch information
heidthecamp authored Jan 7, 2025
1 parent 6160dc0 commit 1fb58aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/python_module_remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ get_mod_dir() {
if ( ${python} -s -c 'import site' >/dev/null 2>&1 ); then
opt='-s'
fi
mdir=$(realpath $(${python} -E $opt -c 'import pkgutil;print(pkgutil.get_loader("'${module}'").filename)')) 2>/dev/null
mdir=$(realpath $(${python} -E $opt -c 'import pkgutil;print(pkgutil.get_loader("'${module}'").filename)' 2>/dev/null) 2>/dev/null) 2>/dev/null
if (echo $mdir | grep "${mdsplus_dir}" >/dev/null); then
echo $mdir >&2
return # imported form MDSPLUS_DIR
Expand Down

0 comments on commit 1fb58aa

Please sign in to comment.