We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cp -n
1 parent 25d6169 commit 2e06ff2Copy full SHA for 2e06ff2
src/libs/ck-libs/ampi/ampiCC
@@ -229,6 +229,6 @@ Do $CHARMBIN/charmc -default-to-aout $ARGS $AMPICC_POST_OPTS $ROMIO
229
status=$?
230
231
# Copy ampirun, but do not overwrite it if it already exists.
232
-[ $status -eq 0 ] && cp -n $CHARMBIN/ampirun .
+[[ $status -eq 0 && ! -f "ampirun" ]] && cp -f "$CHARMBIN/ampirun" .
233
234
exit $status
src/libs/ck-libs/ampi/ampif90
@@ -7,7 +7,7 @@ ORIGIN='\$ORIGIN'
7
export AMPICC="$(basename $0)"
8
export AMPICC_MODE='ampif'
9
10
-cp -n $CHARMBIN/../include/mpif.h .
+[[ ! -f "mpif.h" ]] && cp -f "$CHARMBIN/../include/mpif.h" .
11
$CHARMBIN/ampiCC "$@"
12
13
/bin/rm -f mpif.h
0 commit comments