ソースを参照

Quote variables and backticks

Otherwise the script fails with spaces or asterisks in the directory path.
Jan Verbeek 9 年 前
コミット
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