milis/bin/yereldepo_yenile.sh

12 lines
292 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# yerel depo yenilenmesinde kullanılır.
# yerel deponuz içinde konsol açıp yereldepo_yenile komutu veriniz.
mkdir -p ../yeniler
for pkt in `cat /depo/paketler/paket.vt | awk '{print $3}'`; do
if [ -f $pkt ];then
mv $pkt ../yeniler/
else
echo "$pkt indirin"
fi
done