File: clear_trash.sh

package info (click to toggle)
raysession 0.17.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,168 kB
  • sloc: python: 44,371; sh: 1,538; makefile: 208; xml: 86
file content (8 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/bash

ray_control get_session_path >/dev/null || exit 1

trashed_clients=`ray_control list_trashed_clients`
for trashed in $trashed_clients;do
    ray_control trashed_client $trashed remove_definitely
done