mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-13 05:48:36 +00:00
Many updates and improvements
- yamllint - shfmt config - fix Go bin path - fix git credentials config - add nvm default packages - updated Brewfile
This commit is contained in:
@@ -10,14 +10,14 @@ if [ -z "${DIRECTORY}" ]; then
|
||||
fi
|
||||
|
||||
if [ -z "${FILENAME}" ]; then
|
||||
FILENAME=$DIRECTORY
|
||||
FILENAME=$DIRECTORY
|
||||
fi
|
||||
|
||||
FILENAME=${FILENAME} | \
|
||||
tr '/' _ | \
|
||||
iconv -t ascii//TRANSLIT | \
|
||||
sed -r s/[^a-zA-Z0-9]+/_/g | \
|
||||
sed -r s/^_+\|-+$//g
|
||||
FILENAME=${FILENAME} \
|
||||
| tr '/' _ \
|
||||
| iconv -t ascii//TRANSLIT \
|
||||
| sed -r s/[^a-zA-Z0-9]+/_/g \
|
||||
| sed -r s/^_+\|-+$//g
|
||||
|
||||
TIMESTAMP=$(date "+%Y%m%d_%H%M%S")
|
||||
FILENAME_TIMESTAMP="${FILENAME}_${TIMESTAMP}"
|
||||
|
||||
Reference in New Issue
Block a user