NetDissect icon indicating copy to clipboard operation
NetDissect copied to clipboard

missing function from rundissect_pytorch_external.sh

Open rosenfeldamir opened this issue 7 years ago • 2 comments

the function globexists is missing from rundissect_pytorch_external.sh:

./script/rundissect_pytorch_external.sh: line 209: globexists: command not found

it does exist, however, in rundissect.sh

rosenfeldamir avatar Nov 21 '17 20:11 rosenfeldamir

same problem here

AlamiMejjati avatar Jan 15 '18 15:01 AlamiMejjati

The "globexists" function should be defined in the file. I am guessing the authors read this stack overflow page, and forgot to include this in their bash script.

If you want to fix this, you can add to the top of ./script/rundissect_pytorch_external.sh:

# For expanding globs http://stackoverflow.com/questions/2937407                
function globexists {                                                           
  set +f                                                                        
  test -e "$1" -o -L "$1";set -f                                                
}  

gauenk avatar Jun 29 '18 02:06 gauenk