projects
/
xremote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f03f1e
)
OCD cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 15 Sep 2018 11:13:51 +0000
(13:13 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 15 Sep 2018 11:13:51 +0000
(13:13 +0200)
xremote.sh
patch
|
blob
|
history
diff --git
a/xremote.sh
b/xremote.sh
index
ecf6f3e
..
5536d01
100755
(executable)
--- a/
xremote.sh
+++ b/
xremote.sh
@@
-111,18
+111,20
@@
done
######################################################################
######################################################################
-[[ -a "$1" ]] || (help && exit 1)
+[[ -a "$1" ]] || (help && echo >&2 "Cannot find $1" && exit 1)
+
+cd "$(dirname "$1")"
main="$(basename "$1")"
main_config="${main}.xremote"
main="$(basename "$1")"
main_config="${main}.xremote"
-if [[
! -f "${main}.xremote
" ]]
+if [[
-f "${main_config}
" ]]
then
then
+ echo "xremote: found ${main_config}"
+else
main_config="${main}"
fi
main_config="${main}"
fi
-cd "$(dirname "$1")"
-
shift
trap cleanup_remote_tmp EXIT
shift
trap cleanup_remote_tmp EXIT
@@
-202,6
+204,7
@@
fi
######################################################################
# I find this slightly ugly ...
######################################################################
# I find this slightly ugly ...
+
for s in "$@"
do
quoted_args="${quoted_args} \"${s}\""
for s in "$@"
do
quoted_args="${quoted_args} \"${s}\""
@@
-236,6
+239,7
@@
do
;;
esac
fi
;;
esac
fi
+
done < "${main_config}"
set +f
done < "${main_config}"
set +f