#!/bin/bash

# Remove current tbb version from linux-signer. You should run this
# when all signing has been done.

set -e
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "$script_dir/functions"

var_is_defined ssh_host_linux_signer tbb_version

ssh "$ssh_host_linux_signer" 'bash -s' << EOF
  test -n "$tbb_version" && rm -Rfv ~/"$SIGNING_PROJECTNAME-$tbb_version" ~/"$SIGNING_PROJECTNAME-$tbb_version-macos-signed"
EOF
