PKGBUILD/Core/move_to_repo.sh

15 lines
488 B
Bash
Executable File

#!/bin/bash
REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/"
find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -exec mv -v {} $REPO \;
find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -exec mv -v {} $REPO \;
find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -delete
find . -mindepth 1 -maxdepth 2 -type f -name "*.zst" -delete
find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -delete
echo "Ready"
sleep 5
kill $(ps x | grep konsole | grep $0 | awk '{print $1}')