Compare commits
3 commits
03c693c20a
...
21689c98b0
Author | SHA1 | Date | |
---|---|---|---|
21689c98b0 | |||
22c6459299 | |||
e4f274c2a9 |
3 changed files with 25 additions and 4 deletions
6
CHANGELOG.md
Normal file
6
CHANGELOG.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Changelog
|
||||
|
||||
- Remplace `mkdir web` by `mkdir ${FILE}`.
|
||||
- Remplace `-path web` by `-path ${FILE}`.
|
||||
- Add git (link) in `borsize.sh`
|
||||
- Add Use section in `README.md`
|
16
README.md
16
README.md
|
@ -2,5 +2,19 @@
|
|||
|
||||
Script that automates the addition of borders and then resizes the desired image(s).
|
||||
|
||||
Requirements :
|
||||
## Requirements :
|
||||
- Imagemagick
|
||||
|
||||
## Use
|
||||
Add an alias to your `.bashrc` or `bash_profile`.
|
||||
|
||||
```bash
|
||||
# Borsize
|
||||
alias borsize="$HOME/Git/borsize.sh/borsize.sh"
|
||||
```
|
||||
|
||||
Once done, save and close the file. Make the aliases available in your current session by typing:
|
||||
|
||||
```
|
||||
source ~/.bash.rc or .bash_profile
|
||||
```
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
## author : KazukyAkayashi
|
||||
## git : https://forge.zarchbox.fr/KazukyAkayashi/borsize.sh
|
||||
## description : Script that automates the addition of borders and then resizes the desired image(s).
|
||||
|
||||
## Bash strict mode ####################################
|
||||
|
@ -18,7 +19,7 @@ FILE=web
|
|||
if [ ! -d "$FILE" ];
|
||||
then
|
||||
echo "Create ${FILE} directory"
|
||||
mkdir web
|
||||
mkdir ${FILE}
|
||||
fi
|
||||
|
||||
## Change border or/and resize if you want.
|
||||
|
|
Loading…
Reference in a new issue