jellyfin/deployment/fedora-package-x64/clean.sh
2019-01-23 21:14:10 +01:00

18 lines
410 B
Bash
Executable File

#!/usr/bin/env bash
source ../common.build.sh
VERSION=`get_version ../..`
package_temporary_dir="`pwd`/pkg-dist-tmp"
pkg_src_dir="`pwd`/pkg-src"
image_name="jellyfin-rpmbuild"
docker_sudo=""
if ! $(id -Gn | grep -q 'docker') && [ ! $EUID -eq 0 ]; then
docker_sudo=sudo
fi
$docker_sudo docker image rm $image_name --force
rm -rf "$package_temporary_dir"
rm -rf "$pkg_src_dir/jellyfin-${VERSION}.tar.gz"