mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove redundant check for existing directory with mkdir -p
The `mkdir -p` command is already idempotent so separately checking whether the directory exists is not necessary.
This commit is contained in:
parent
e9581b87ba
commit
60733bc033
|
@ -153,9 +153,7 @@ function _copy_sdl() {
|
|||
mkdir -p ddnet-libs/sdl/"$OS_NAME"/lib"$2"
|
||||
cp compile_libs/sdl/build_"$OS_NAME"_"$1"/libSDL2.a ddnet-libs/sdl/"$OS_NAME"/lib"$2"/libSDL2.a
|
||||
cp compile_libs/sdl/build_"$OS_NAME"_"$1"/libSDL2main.a ddnet-libs/sdl/"$OS_NAME"/lib"$2"/libSDL2main.a
|
||||
if [ ! -d "ddnet-libs/sdl/include/$OS_NAME" ]; then
|
||||
mkdir -p ddnet-libs/sdl/include/"$OS_NAME"
|
||||
fi
|
||||
cp -R compile_libs/sdl/include/* ddnet-libs/sdl/include/"$OS_NAME"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue