Skip to content

Commit

Permalink
update script for parent_dir and msg
Browse files Browse the repository at this point in the history
  • Loading branch information
wolandark committed Jun 27, 2024
1 parent a2bbc93 commit 1f6bbff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ createUpdateScript()
cat << 'EOF' > update.sh
#!/bin/sh
parent_dir=$(basename "$(pwd)")
msg=$(git log -1 --pretty=%B)
# Check parent wim dir exists
checkWimExist()
{
Expand Down Expand Up @@ -119,6 +122,8 @@ linkFiles()
}
checkWimExist
linkFiles
printf "\e[43;30mMessage From Woland: %s\e[0m\n" "$msg"
EOF

chmod +x update.sh
Expand Down

0 comments on commit 1f6bbff

Please sign in to comment.