mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 22:45:46 +03:00
52e6a63d8c
Merge in DNS/adguard-home from fix-race to master Squashed commit of the following: commit dff47c707554f689cf131e0ab3fe05df4e4b6a51 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri May 21 19:12:06 2021 +0300 all: fix race, imp scripts
31 lines
403 B
Bash
31 lines
403 B
Bash
#!/bin/sh
|
|
|
|
verbose="${VERBOSE:-0}"
|
|
readonly verbose
|
|
|
|
if [ "$verbose" -gt '0' ]
|
|
then
|
|
set -x
|
|
fi
|
|
|
|
set -e -f -u
|
|
|
|
dist_dir="$DIST_DIR"
|
|
sudo_cmd="${SUDO:-}"
|
|
readonly dist_dir sudo_cmd
|
|
|
|
$sudo_cmd rm -f\
|
|
./AdGuardHome\
|
|
./AdGuardHome.exe\
|
|
./coverage.txt\
|
|
;
|
|
|
|
$sudo_cmd rm -f -r\
|
|
./bin/\
|
|
./build/static/\
|
|
./build2/static/\
|
|
./client/node_modules/\
|
|
./client2/node_modules/\
|
|
./data/\
|
|
"./${dist_dir}/"\
|
|
;
|