mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Script being used to detect which snaps can be moved to
for snap in $(ls tests/lib/snaps); do
if [ -f "tests/lib/snaps/${snap}/snapcraft.yaml" ]; then
echo "Exists file tests/lib/snaps/${snap}/snapcraft.yaml"
continue
fi
count=0
last=
for test in $(find tests/ -name task.yaml); do
if $(grep -q $snap $test); then
count=$((count+1))
last=$test
fi
done
# echo "$snap -> $count times"
if [ $count = 1 ]; then
echo "mv tests/lib/snaps/$snap $(dirname $last)"
fi
done