mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 21:15:35 +03:00
e0d89ba267
Merge in DNS/adguard-home from imp-sh to master Squashed commit of the following: commit d574deae73e5c07e1e9ef43152de8d86b276c623 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Jun 10 20:00:56 2021 +0300 scripts: imp all
31 lines
426 B
Bash
31 lines
426 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:?please set 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}/"\
|
|
;
|