We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528ef7a commit 23a75f7Copy full SHA for 23a75f7
S3/S3_Transfer_Acceleration/Bash-script/test-upload.sh
@@ -35,6 +35,15 @@ if command -v gdate >/dev/null; then
35
date() { command gdate "$@"; }
36
fi
37
38
+nanos_test=$(date +%N)
39
+if [ "${nanos_test%N}" != "$nanos_test" ]; then
40
+ {
41
+ echo '`date` command does not support nanoseconds.'
42
+ echo 'If you are on Mac OS, please install coreutils via homebrew.'
43
+ exit 1
44
+ } >&2
45
+fi
46
+
47
# Taking Input parameters from the user
48
read -p "Enter the local path of the file you want to upload: " filename
49
read -p "Enter the destination file name: " s3_filename
0 commit comments