Add existing scripts
This commit is contained in:
1 parent
2ab5a42c2b
commit
3c05d74104
31 files changed
+1138
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Exit if any command fails and enable tracing
|
||||
set -ex
|
||||
|
||||
# Get today's date in the format YYYY-MM-DD
|
||||
today=$(date +"%Y-%m-%d")
|
||||
|
||||
# Create a path to today's temp folder and then make sure the folder exists
|
||||
temp_path="/tmp/${today}"
|
||||
mkdir -p "${temp_path}"
|
||||
|
||||
# Now make a symlink to the folder in your homedir
|
||||
ln -sf "${temp_path}" "${HOME}/today"
|
||||
|
||||
# Disable tracing
|
||||
set +x
|
||||
|
||||
# Write out the path you created
|
||||
echo "${temp_path}"
|
||||
|
||||
Reference in new issue
Block a user