David Blume commited on 2015-11-27 17:56:07
Showing 2 changed files, with 1 additions and 5 deletions.
... | ... |
@@ -1,11 +1,7 @@ |
1 | 1 |
#!/bin/bash |
2 | 2 |
set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/ |
3 | 3 |
|
4 |
-if [[ $(uname -s) == Darwin* ]]; then |
|
5 | 4 |
declare -r backup_dir=$HOME/backup_of_orig_dotfiles_`date "+%Y-%m-%d"` |
6 |
-else |
|
7 |
- declare -r backup_dir=$HOME/backup_of_orig_dotfiles_`date -Idate` |
|
8 |
-fi |
|
9 | 5 |
|
10 | 6 |
if [ ! -d $backup_dir ]; then |
11 | 7 |
mkdir -p $backup_dir |
12 | 8 |