|
|
@ -13,11 +13,11 @@ image_name="jellyfin-debuild"
|
|
|
|
|
|
|
|
|
|
|
|
cleanup() {
|
|
|
|
cleanup() {
|
|
|
|
docker image rm $image_name --force
|
|
|
|
docker image rm $image_name --force
|
|
|
|
test -d ${package_temporary_dir} && rm -r ${package_temporary_dir}
|
|
|
|
test -d "$package_temporary_dir" && rm -r "$package_temporary_dir"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
trap cleanup EXIT
|
|
|
|
|
|
|
|
|
|
|
|
docker build . -t $image_name -f ./Dockerfile.debian_package
|
|
|
|
docker build . -t "$image_name" -f ./Dockerfile.debian_package
|
|
|
|
docker run --rm -v $package_temporary_dir:/temp $image_name cp -r /dist /temp/
|
|
|
|
docker run --rm -v "$package_temporary_dir:/temp" "$image_name" cp -r /dist /temp/
|
|
|
|
sudo chown -R $current_user $package_temporary_dir
|
|
|
|
sudo chown -R "$current_user" "$package_temporary_dir"
|
|
|
|
mv $package_temporary_dir/dist/*.deb ../
|
|
|
|
mv "$package_temporary_dir"/dist/*.deb ../
|
|
|
|