Find Jobs
Hire Freelancers

Write a bash script to check output of git diff if changed files are in specific folder run yarn then zip

$30-250 USD

Завершено
Опублікований over 5 years ago

$30-250 USD

Оплачується при отриманні
I would like a bash shell script written which will check what files have changed with git. My project has two theme folders each folder has it's own scss and js assets. The bash script will check if files have changed in theme folder one or theme folder two or maybe both themes have changes to scss or js The script will use git diff Check which theme folders have changed files with extension .scss or .js Then change directory to that theme folder and run yarn build Then run zip -r [login to view URL] dist/ This will create a zip of the compiled assets for the theme A few things to note are scss and js might be changed in both theme folders. Only run yarn build once in each theme folder. So if 3 files are changed in a theme folder the yarn build will only run one time and zip the files Here's some sample code to maybe help get you started # folder path one includes "themes/one' # folder path two includes "themes/two" git diff --name-only | \ while read filechanged # folder/folder/themes/one/[login to view URL] do echo $filechanged extension="${filechanged##*.}" echo $extension ...
ID проекту: 17869923

Про проект

5 пропозицій(-ї)
Дистанційний проект
Активність 5 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Bash guru at your service. Its a simple bash script. I can do it in an hour. Thank you..............
$30 USD за 1 день
4,9 (147 відгуки(-ів))
6,2
6,2
5 фрілансерів(-и) готові виконати цю роботу у середньому за $109 USD
Аватарка користувача
Hi, I have not tried git within a shell script. But being a shell script, this is something i can do it easily based on your requirement. Only thing which confuse is the scss and js part. By the way, i will read this project again tomorrow morning my time to understand with a fresh mind. You can refer my profile and if interested you can send me a message. I will be online at 8.30 IST. Thank You
$88 USD за 2 дні(-в)
5,0 (11 відгуки(-ів))
3,4
3,4
Аватарка користувача
Hello I am having lots of experience in bash scripting and i can do this task as well but i am having few questions to discuss so can you come on discussion Thanks Nirmal
$155 USD за 3 дні(-в)
5,0 (5 відгуки(-ів))
2,8
2,8
Аватарка користувача
Hi I am an Devops engineer experienced in shell scripting for linux system monitoring, troubleshooting, automation etc. I can do this bash script to find changed git repositories and then execute yarn build command on that directory and then zip files as you mentioned in your description. Please message to discuss further on this Thanks Note-please check my profile for past projects and reviews.
$72 USD за 6 дні(-в)
5,0 (1 відгук)
0,8
0,8

Про клієнта

Прапор UNITED STATES
Mount Sinai, United States
5,0
21
Спосіб оплати верифіковано
На сайті з лип. 30, 2010

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.