20 lines
425 B
Bash
Executable File
20 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
# remove_sid
|
|
#
|
|
# USAGE: remove_sid sid shop_dir sold_dir
|
|
|
|
find "${2}" -type d -name "${1}" -exec mv {} "${3}"
|
|
|
|
# https://stackoverflow.com/a/6329624/
|
|
#find "${2}" -type f \( -path "*/${1}/index.*" -o -name "${1}.*" \) \
|
|
# -printf "cp '%h/%f' '%h/_sold.%f'\nrm '%h/%f'" |bash -s
|
|
|
|
# Update website
|
|
npm run build & (
|
|
git status
|
|
git remote -v
|
|
#git add "${2}" && \
|
|
#git commit -m "Products sold" && \
|
|
#git push
|
|
)
|