소스 검색

Quote variables and backticks

Otherwise the script fails with spaces or asterisks in the directory path.
Jan Verbeek 8 년 전
부모
커밋
42debcfe3c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      manage.sh

+ 1
- 1
manage.sh 파일 보기

@@ -1,6 +1,6 @@
1 1
 #!/bin/sh
2 2
 
3
-BASE_DIR=$(dirname `readlink -f $0`)
3
+BASE_DIR=$(dirname "`readlink -f "$0"`")
4 4
 PYTHONPATH=$BASE_DIR
5 5
 SEARX_DIR="$BASE_DIR/searx"
6 6
 ACTION=$1