mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +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:
parent
3454ca57a2
commit
700a0d702d
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue