diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-buildopk.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index 5dd7917..598419f 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -41,9 +41,13 @@ build_opk() # Also, we want to set the mtimes of the links themselves, if possible. rm -f '.opkbuild/touch-noderef.none' '.opkbuild/touch-noderef.link' ln -s '.opkbuild/touch-noderef.none' '.opkbuild/touch-noderef.link' - ${TOUCH} -h '.opkbuild/touch-noderef.link' 1>/dev/null 2>/dev/null || : - if ! test -f '.opkbuild/touch-noderef.none'; then - find_not_link='' touch_noderef='-h' + if ${TOUCH} -h '.opkbuild/touch-noderef.link' 1>/dev/null 2>/dev/null + then + if test -f '.opkbuild/touch-noderef.none'; then + find_not_link='! -type l' touch_noderef='' + else + find_not_link='' touch_noderef='-h' + fi else find_not_link='! -type l' touch_noderef='' fi |