mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
replace use of non standard mv -n flag
The -n flag is a non-standard flag and should not be used in scripts. See https://man.openbsd.org/FreeBSD-11.1/mv#COMPATIBILITY.
This commit is contained in:
committed by
Rusty Russell
parent
3454ca57a2
commit
700a0d702d
@@ -6,12 +6,11 @@ if [ $# = 0 ]; then
|
||||
fi
|
||||
|
||||
# git submodule can't run in parallel. Really.
|
||||
echo $$ > .refresh-submodules.$$
|
||||
if ! mv -n .refresh-submodules.$$ .refresh-submodules; then
|
||||
rm -f .refresh-submodules.$$
|
||||
if ! mkdir .refresh-submodules 2>/dev/null ; then
|
||||
exit 0
|
||||
fi
|
||||
trap "rm -f .refresh-submodules" EXIT
|
||||
|
||||
trap "rmdir .refresh-submodules" EXIT
|
||||
|
||||
# Be a little careful here, since we do rm -rf!
|
||||
for m in "$@"; do
|
||||
|
||||
Reference in New Issue
Block a user