assignment 1
This commit is contained in:
17
scripts/link.sh
Normal file
17
scripts/link.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/zsh
|
||||
|
||||
source scripts/common.sh
|
||||
|
||||
assignments=($(ls -d $ASSIGNMENT_DIR/*/))
|
||||
practices=($(ls -d $PRACTICES_DIR/*/))
|
||||
projects=($assignments $practices)
|
||||
|
||||
for project in ${projects[@]}; do
|
||||
cd $project || exit 1
|
||||
|
||||
name=${project%/}
|
||||
name=${name##*/}
|
||||
|
||||
echo "linking shared/common.css to $name"
|
||||
cp $SHARED_DIR/common.css css/common.css
|
||||
done
|
||||
Reference in New Issue
Block a user