mirror of
https://github.com/clearlinux/graphene.git
synced 2026-08-20 04:36:43 +00:00
14 lines
298 B
Bash
Executable File
14 lines
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
top_dir="$(readlink -m "${BASH_SOURCE[0]}/../..")"
|
|
clean_dir="$top_dir.clean-check.clean"
|
|
|
|
if [ -n "${JENKINS_HOME:-}" ] || [ -n "${HUDSON_HOME:-}" ]; then
|
|
clean_dir="/tmp/$(basename "$clean_dir")"
|
|
fi
|
|
|
|
rm -rf "$clean_dir"
|
|
cp -a "$top_dir" "$clean_dir"
|