KF2-SRV/activate.sh
2020-07-09 01:22:30 +03:00

14 lines
233 B
Bash
Executable File

#!/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"