Skip to content

Commit

Permalink
Ensure file permissions, add permissions task, release 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Sep 13, 2022
1 parent 599044e commit 6ad0c61
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Modularize check-updates as task
* Simplify get-block task by modularizing create-predefined-block as task
* Ensure file permissions, add permissions task

### 1.2.2: 2022-09-12

Expand Down
2 changes: 1 addition & 1 deletion bin/newblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Script specific vars
SCRIPT_LABEL='for macOS'
SCRIPT_VERSION='1.2.2 (2022-09-12)'
SCRIPT_VERSION='1.2.3 (2022-09-13)'

# Vars needed for this file to function globally
CURRENTFILE=`basename $0`
Expand Down
2 changes: 1 addition & 1 deletion bin/tasks/acf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
mkdir -p ${PROJECT_THEME_PATH}/acf-json

# Ensure file permissions for that folder
sudo chmod -R 777 ${PROJECT_THEME_PATH}/acf-json
source ${SCRIPTS_LOCATION}/tasks/permissions.sh
3 changes: 3 additions & 0 deletions bin/tasks/get-block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ if [[ $IS_RENAMED_BLOCK =~ "yes" ]]; then
# Run rename task
source ${SCRIPTS_LOCATION}/tasks/rename.sh
fi

# Ensure file permissions for ACF folder
source ${SCRIPTS_LOCATION}/tasks/permissions.sh
8 changes: 8 additions & 0 deletions bin/tasks/permissions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# @Author: Roni Laukkarinen
# @Date: 2021-11-23 18:26:55
# @Last Modified by: Roni Laukkarinen
# @Last Modified time: 2022-01-11 17:16:01

# Ensure file permissions for that folder
sudo chmod -R 777 ${PROJECT_THEME_PATH}/acf-json

0 comments on commit 6ad0c61

Please sign in to comment.