Reorganise gists folder
This commit is contained in:
16
config/zupdate.sh
Normal file
16
config/zupdate.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
[[ -s /home/tke/.bashrc ]] && source /home/tke/.bashrc
|
||||
[[ -f ~/.config/z.sh ]] && . ~/.config/z.sh
|
||||
|
||||
echo $$ >> /tmp/zupdate.log
|
||||
env >> /tmp/zupdate.log
|
||||
id >> /tmp/zupdate.log
|
||||
cd
|
||||
echo $(pwd) >> /tmp/zupdate.log
|
||||
while true ;
|
||||
do
|
||||
newfolder=$(inotifywait -e create /media/data/cases/ | awk '{print $1 $3}')
|
||||
echo "$$ Detected ${newfolder}" >> /tmp/zupdate.log
|
||||
z --add "${newfolder}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user