forked from Dafummd/TechLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateContent.sh
More file actions
executable file
·29 lines (25 loc) · 811 Bytes
/
Copy pathupdateContent.sh
File metadata and controls
executable file
·29 lines (25 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -
#===============================================================================
#
# FILE: updateContent.sh
#
# USAGE: ./updateContent.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Xu, Yue (ayxu), ayxu@amazon.com
# ORGANIZATION: Economic Selling, OIH, SCOT
# CREATED: 04/08/2018 18:20:28
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
set -x
root_dir=${PWD%/*}
filename="README.md"
cat /dev/null > ${root_dir}/${filename} && echo "# Contents" > ${root_dir}/${filename}
python3 ${PWD}/listFiles.py ${root_dir} >> ${root_dir}/${filename}
echo "Done!"