···11-postFixupHooks+=(_cygwinFixAutoImageBase)
11+fixupOutputHooks+=(_cygwinFixAutoImageBase)
2233_cygwinFixAutoImageBase() {
44- if [ "$dontRebase" == 1 ]; then
44+ if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
55 return
66 fi
77- find $out -name "*.dll" | while read DLL; do
77+ find "$prefix" -name "*.dll" -type f | while read DLL; do
88 if [ -f /etc/rebasenix.nextbase ]; then
99 NEXTBASE="$(</etc/rebasenix.nextbase)"
1010 fi
+3-3
pkgs/stdenv/cygwin/rebase-x86_64.sh
···11-postFixupHooks+=(_cygwinFixAutoImageBase)
11+fixupOutputHooks+=(_cygwinFixAutoImageBase)
2233_cygwinFixAutoImageBase() {
44- if [ "$dontRebase" == 1 ]; then
44+ if [ "$dontRebase" == 1 ] || [ ! -d "$prefix" ]; then
55 return
66 fi
77- find $out -name "*.dll" | while read DLL; do
77+ find "$prefix" -name "*.dll" -type f | while read DLL; do
88 if [ -f /etc/rebasenix.nextbase ]; then
99 NEXTBASE="$(</etc/rebasenix.nextbase)"
1010 fi