projects
/
carnet-tools-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e4a56
)
r87: Sitne sintaksne greske u cp_backup_conffile.
author
Zoran Dzelajlija
<Zoran.Dzelajlija@CARNet.hr>
Fri, 28 Oct 2005 12:56:33 +0000
(12:56 +0000)
committer
Zoran Dzelajlija
<Zoran.Dzelajlija@CARNet.hr>
Fri, 28 Oct 2005 12:56:33 +0000
(12:56 +0000)
functions.sh
patch
|
blob
|
history
diff --git
a/functions.sh
b/functions.sh
index
47ad62f
..
8c2e0e8
100644
(file)
--- a/
functions.sh
+++ b/
functions.sh
@@
-173,6
+173,7
@@
cp_backup_conffile() {
-p)
shift
opt_p=1
+ ;;
-d)
shift
opt_d=1
@@
-187,11
+188,13
@@
cp_backup_conffile() {
-n)
shift
ext=
+ ;;
esac
done
if [ "$opt_d" ]; then
if [ ! -e "$dir" -a "$opt_p" ]; then
mkdir "$dir"
+ fi
if [ $? -ne 0 ]; then
echo "cp_backup_conffile: Error creating backup directory $dir" 1>&2
return 3