回答編集履歴

2

ダブルクォーテーションの削除

2020/06/11 08:04

投稿

ToyoshimaHi
ToyoshimaHi

スコア130

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```bash
6
6
 
7
- if [ 0 -lt $(ls -l "${out_dir}/*.xyz.gz" | wc -l) ]; then
7
+ if [ 0 -lt $(ls -l ${out_dir}/*.xyz.gz | wc -l) ]; then
8
8
 
9
9
  echo "file already exist"
10
10
 

1

条件分岐の訂正

2020/06/11 08:04

投稿

ToyoshimaHi
ToyoshimaHi

スコア130

test CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  if [ 0 -lt $(ls -l "${out_dir}/*.xyz.gz" | wc -l) ]; then
8
8
 
9
- echo "file not exists"
9
+ echo "file already exist"
10
10
 
11
11
  else
12
12
 
13
- echo "file already exists"
13
+ echo "file not exists"
14
14
 
15
15
  fi 2> /dev/null
16
16