Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] all_plugins.sh: fix sed, improve cd

  • Loading branch information...
commit ffb3046c3b30478410b17bd246d9b7b33889d992 1 parent c6d1797
@Aqua-Ye Aqua-Ye authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/stdlib/all_plugins.sh
View
6 lib/stdlib/all_plugins.sh
@@ -8,10 +8,12 @@ LOOKED_PLACE=$@
# source platform_helper (for sed)
. ${OPA_SOURCE_DIR:-$(dirname $0)/../../}/tools/platform_helper.sh
+CWD=$PWD
+
for d in $LOOKED_PLACE; do
cd $d
- DIRS=$(find . -type d | sed "s|^.\/||")
- cd -
+ DIRS=$(find . -type d | sed "s|^\.\/||" | sed "s|^\.||")
+ cd $CWD
for dir in $DIRS ; do
files=$(find $d/$dir -maxdepth 1 -name '*.opa')
if [ -n "$files" ] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.