Compare commits

..

3 commits

3 changed files with 25 additions and 4 deletions

6
CHANGELOG.md Normal file
View 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`

View file

@ -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
```

View file

@ -1,5 +1,6 @@
#!/bin/bash
## author : KazukyAkayashi
## 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.