git://git.creatis.insa-lyon.fr
/
clitk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98b4f60
)
check if file already exists
author
pgueth
<pgueth@kingkong.grid.creatis.insa-lyon.fr>
Fri, 4 Mar 2011 11:51:34 +0000
(12:51 +0100)
committer
David Sarrut
<david.sarrut@creatis.insa-lyon.fr>
Thu, 20 Jun 2013 11:14:23 +0000
(13:14 +0200)
grid/common.sh
patch
|
blob
|
history
diff --git
a/grid/common.sh
b/grid/common.sh
index 44ad69381ed09e212c99c1cb9001c2fb09ac7bb3..c466050077c53d5b93f20bc216fdbd292d367084 100644
(file)
--- a/
grid/common.sh
+++ b/
grid/common.sh
@@
-27,6
+27,12
@@
test "${answer}" == "n" && return 1
check_user "${prompt}"
}
+function file_exists {
+lfnfile="${1:?"provide lfn to file"}"
+lfc-ls ${lfnfile} 2>&1 > /dev/null
+}
+
+
# common path used
lfnbase="/grid/biomed/creatis/fgate/"
lfnrelease="${lfnbase}releases/"