Run linkFile() with root privileges
This commit is contained in:
parent
97fed6cb69
commit
9d0e116758
|
@ -96,7 +96,7 @@ loopThroughFiles() {
|
||||||
|
|
||||||
if [[ -f "$srcFile" ]]; then
|
if [[ -f "$srcFile" ]]; then
|
||||||
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\/other\//, ""); print }')
|
var=$(echo "$srcFile" | awk '{ sub(/.*CocoRice\/dotfiles\/other\//, ""); print }')
|
||||||
sudo linkFile "$srcFile" "/$var"
|
sudo bash -c "$(declare -f linkFile); "linkFile" "$srcFile" "/$var""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue