This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const tencentcloud = require('tencentcloud-sdk-nodejs'); | |
const TENCENTCLOUD_SECRET_ID = 'your secret id'; | |
const TENCENTCLOUD_SECRET_KEY = 'your secret key'; | |
const CERTIFICATE_PUBLIC_KEY_FILE = 'your public cert file'; | |
const CERTIFICATE_PRIVATE_KEY_FILE = 'your private cert file'; | |
const CERTIFICATE_DOMAIN = 'your domain'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
isDir() | |
{ | |
local dirName=$1 | |
if [ -d $dirName ]; then | |
echo true | |
else | |
echo false | |
fi |