KF2-SRV/activate.sh

14 lines
233 B
Bash
Raw Normal View History

2020-07-08 22:22:30 +00:00
#!/bin/bash
ScriptFullname=$(readlink -e "$0")
SrpmProjectDir=$(dirname "$ScriptFullname")
RpmBuild="$HOME/rpmbuild"
if [[ -d "$RpmBuild" ]]; then
rm -rf "$RpmBuild"
else
rm -f "$RpmBuild"
fi
ln -s "$SrpmProjectDir" "$RpmBuild"